This commit is contained in:
string 2025-03-27 09:09:09 +05:30
parent a7521d6808
commit 7b0f190e28
3 changed files with 10 additions and 13 deletions

View File

@ -1,5 +1,4 @@
import 'package:base_project/utils/image_constant.dart'; import 'package:base_project/utils/image_constant.dart';
import 'package:base_project/commans/widgets/custome_drawe_item.dart'; import 'package:base_project/commans/widgets/custome_drawe_item.dart';
import 'package:base_project/resources/app_colors.dart'; import 'package:base_project/resources/app_colors.dart';
import 'package:base_project/routes/route_names.dart'; import 'package:base_project/routes/route_names.dart';
@ -36,7 +35,7 @@ class MyCustomDrawer extends StatelessWidget {
: SvgPicture.asset( : SvgPicture.asset(
ImageConstant.userProfileImg, // Placeholder SVG asset ImageConstant.userProfileImg, // Placeholder SVG asset
// AppImages.userProfileImg, // Placeholder SVG asset // AppImages.userProfileImg, // Placeholder SVG asset
width: 60, // Adjust to fit the CircleAvatar width: 60, // Adjust to fit the CircleAvatar
height: 60, height: 60,
), ),
@ -57,7 +56,7 @@ class MyCustomDrawer extends StatelessWidget {
icon: Icons.system_security_update, icon: Icons.system_security_update,
title: 'System Parameters', title: 'System Parameters',
onTap: () { onTap: () {
// Add navigation or other logic here // Add navigation or other logic here
Navigator.pushNamed(context, RouteNames.systemParamsView); Navigator.pushNamed(context, RouteNames.systemParamsView);
}, },
), ),
@ -70,8 +69,7 @@ class MyCustomDrawer extends StatelessWidget {
}, },
), ),
// NEW MENU // NEW MENU
DrawerItem( DrawerItem(
icon: Icons.logout, icon: Icons.logout,
color: Colors.red, color: Colors.red,

View File

@ -25,6 +25,9 @@ void main() async {
ChangeNotifierProvider( ChangeNotifierProvider(
create: (context) => SystemParamsViewModel(), create: (context) => SystemParamsViewModel(),
), ),
// ChangeNotifierProvider(
// create: (context) => BasicpViewModelScreen(),
// ),
], ],
child: const MyApp(), child: const MyApp(),
)); ));

View File

@ -1,17 +1,13 @@
import 'package:base_project/resources/app_colors.dart'; import 'package:base_project/resources/app_colors.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart'; import 'package:fluttertoast/fluttertoast.dart';
class ToastMessageUtil { class ToastMessageUtil {
static void showToast({ static void showToast({
required String message, required String message,
ToastType toastType = ToastType.info, ToastType toastType = ToastType.info,
ToastGravity gravity = ToastGravity.BOTTOM, ToastGravity gravity = ToastGravity.TOP,
int durationInSeconds = 3, int durationInSeconds = 5,
}) { }) {
Fluttertoast.showToast( Fluttertoast.showToast(
msg: message, msg: message,
@ -40,6 +36,6 @@ class ToastMessageUtil {
return AppColors.info; return AppColors.info;
} }
} }
} }
enum ToastType { success, error, warning, info, general }
enum ToastType { success, error, warning, info, general }