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';
|
||||
@ -71,7 +70,6 @@ class MyCustomDrawer extends StatelessWidget {
|
||||
),
|
||||
|
||||
// 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