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(