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/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';
|
||||||
@ -71,7 +70,6 @@ class MyCustomDrawer extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
|
|
||||||
// NEW MENU
|
// NEW MENU
|
||||||
|
|
||||||
DrawerItem(
|
DrawerItem(
|
||||||
icon: Icons.logout,
|
icon: Icons.logout,
|
||||||
color: Colors.red,
|
color: Colors.red,
|
||||||
|
|||||||
@ -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(),
|
||||||
));
|
));
|
||||||
|
|||||||
@ -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 }
|
||||||
Loading…
x
Reference in New Issue
Block a user