From fccea720661ac64e165cd83a21d29e03bce19f53 Mon Sep 17 00:00:00 2001 From: Erick Date: Sun, 22 Oct 2023 11:03:06 +0300 Subject: [PATCH] feat: to elearning tool card working --- lib/pages/tool_page.dart | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/lib/pages/tool_page.dart b/lib/pages/tool_page.dart index 03585f6..451e538 100644 --- a/lib/pages/tool_page.dart +++ b/lib/pages/tool_page.dart @@ -1,5 +1,7 @@ import 'package:academia/controllers/tool_page_controller.dart'; +import 'package:academia/pages/webview_page.dart'; import 'package:academia/widgets/tool_card.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; @@ -17,6 +19,21 @@ class ToolsPage extends StatelessWidget { body: GridView.count( crossAxisCount: 2, children: [ + ToolCard( + ontap: () { + Get.to( + const WebviewPage( + title: "Daystar Elearning", + url: "https://student.daystar.ac.ke"), + ); + }, + icon: const Icon( + CupertinoIcons.book_circle, + color: Colors.white, + ), + title: "To Elearning", + backGround: Colors.blueGrey, + ), ToolCard( icon: const Icon( Icons.food_bank, @@ -55,15 +72,6 @@ class ToolsPage extends StatelessWidget { title: "My Scedules", backGround: Colors.blueGrey, ), - ToolCard( - ontap: () {}, - icon: const Icon( - Icons.school, - color: Colors.white, - ), - title: "To Elearning", - backGround: Colors.blueGrey, - ), ToolCard( ontap: () {}, icon: const Icon(