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/commans/widgets/custome_drawe_item.dart';
import 'package:base_project/resources/app_colors.dart';
import 'package:base_project/routes/route_names.dart';
@ -71,7 +70,6 @@ class MyCustomDrawer extends StatelessWidget {
),
// NEW MENU
DrawerItem(
icon: Icons.logout,
color: Colors.red,

View File

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

View File

@ -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 }