mirror of
https://github.com/hmalik144/days_left_flutter.git
synced 2025-12-10 03:05:21 +00:00
- Introduction on base view model and stateless widget classes
- Implementation of firebase - Implementation of dependency injection Took 11 hours 26 minutes
This commit is contained in:
13
lib/Utils/ViewUtils.dart
Normal file
13
lib/Utils/ViewUtils.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:toast/toast.dart';
|
||||
|
||||
class ViewUtils{
|
||||
|
||||
static displayToast(BuildContext context, String message){
|
||||
Toast.show(
|
||||
message, context,
|
||||
duration: Toast.LENGTH_SHORT,
|
||||
gravity: Toast.BOTTOM
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user