Skip to content

Commit

Permalink
feat: to elearning tool card working
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMuuo committed Oct 22, 2023
1 parent 0b5a6c7 commit fccea72
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions lib/pages/tool_page.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit fccea72

Please sign in to comment.