7/6/1
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:get/get_rx/src/rx_typedefs/rx_typedefs.dart';
|
||||
import 'package:sefer_admin1/constant/colors.dart';
|
||||
import 'package:sefer_admin1/controller/admin/dashboard_controller.dart';
|
||||
import 'package:sefer_admin1/controller/admin/static_controller.dart';
|
||||
import 'package:sefer_admin1/controller/notification_controller.dart';
|
||||
import 'package:sefer_admin1/views/widgets/mycircular.dart';
|
||||
|
||||
@@ -25,6 +27,15 @@ class AdminHomePage extends StatelessWidget {
|
||||
|
||||
return MyScafolld(
|
||||
title: 'Admin Home Page',
|
||||
action: IconButton(
|
||||
onPressed: () async {
|
||||
await Get.find<DashboardController>().getDashBoard();
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.refresh,
|
||||
color: AppColor.greenColor,
|
||||
),
|
||||
),
|
||||
body: [
|
||||
GetBuilder<DashboardController>(builder: (dashboardController) {
|
||||
return dashboardController.dashbord.isEmpty
|
||||
@@ -318,8 +329,13 @@ class AdminHomePage extends StatelessWidget {
|
||||
onPressed: () => Get.to(() => Rides(),
|
||||
transition: Transition.downToUp)),
|
||||
AdminWidgetsDashBoard(
|
||||
title: 'Static',
|
||||
onPressed: () => Get.to(() => const StaticDash())),
|
||||
title: 'Static',
|
||||
onPressed: () async {
|
||||
await Get.put(StaticController()).getAll();
|
||||
|
||||
Get.to(() => const StaticDash());
|
||||
},
|
||||
),
|
||||
AdminWidgetsDashBoard(
|
||||
title: 'send notification Drivers',
|
||||
onPressed: () async {
|
||||
|
||||
Reference in New Issue
Block a user