flutter
This commit is contained in:
parent
a7521d6808
commit
7b0f190e28
@ -1,5 +1,4 @@
|
||||
import 'package:base_project/utils/image_constant.dart';
|
||||
|
||||
import 'package:base_project/commans/widgets/custome_drawe_item.dart';
|
||||
import 'package:base_project/resources/app_colors.dart';
|
||||
import 'package:base_project/routes/route_names.dart';
|
||||
@ -36,7 +35,7 @@ class MyCustomDrawer extends StatelessWidget {
|
||||
: SvgPicture.asset(
|
||||
ImageConstant.userProfileImg, // Placeholder SVG asset
|
||||
|
||||
// AppImages.userProfileImg, // Placeholder SVG asset
|
||||
// AppImages.userProfileImg, // Placeholder SVG asset
|
||||
width: 60, // Adjust to fit the CircleAvatar
|
||||
height: 60,
|
||||
),
|
||||
@ -57,7 +56,7 @@ class MyCustomDrawer extends StatelessWidget {
|
||||
icon: Icons.system_security_update,
|
||||
title: 'System Parameters',
|
||||
onTap: () {
|
||||
// Add navigation or other logic here
|
||||
// Add navigation or other logic here
|
||||
Navigator.pushNamed(context, RouteNames.systemParamsView);
|
||||
},
|
||||
),
|
||||
@ -70,8 +69,7 @@ class MyCustomDrawer extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
|
||||
// NEW MENU
|
||||
|
||||
// NEW MENU
|
||||
DrawerItem(
|
||||
icon: Icons.logout,
|
||||
color: Colors.red,
|
||||
|
||||
@ -25,6 +25,9 @@ void main() async {
|
||||
ChangeNotifierProvider(
|
||||
create: (context) => SystemParamsViewModel(),
|
||||
),
|
||||
// ChangeNotifierProvider(
|
||||
// create: (context) => BasicpViewModelScreen(),
|
||||
// ),
|
||||
],
|
||||
child: const MyApp(),
|
||||
));
|
||||
|
||||
@ -1,17 +1,13 @@
|
||||
|
||||
import 'package:base_project/resources/app_colors.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
|
||||
|
||||
|
||||
class ToastMessageUtil {
|
||||
|
||||
static void showToast({
|
||||
required String message,
|
||||
ToastType toastType = ToastType.info,
|
||||
ToastGravity gravity = ToastGravity.BOTTOM,
|
||||
int durationInSeconds = 3,
|
||||
ToastGravity gravity = ToastGravity.TOP,
|
||||
int durationInSeconds = 5,
|
||||
}) {
|
||||
Fluttertoast.showToast(
|
||||
msg: message,
|
||||
@ -40,6 +36,6 @@ class ToastMessageUtil {
|
||||
return AppColors.info;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
enum ToastType { success, error, warning, info, general }
|
||||
Loading…
x
Reference in New Issue
Block a user