mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
new HourPicker
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'color_manager.dart';
|
||||
|
||||
InputDecoration? textBoxDecoration({bool suffixIcon = false}) =>
|
||||
@ -43,25 +42,3 @@ BoxDecoration containerDecoration = BoxDecoration(
|
||||
color: ColorsManager.boxColor,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(10)));
|
||||
|
||||
|
||||
/// A function to display a customizable toast message
|
||||
void showCustomToast({
|
||||
required String message,
|
||||
ToastGravity gravity = ToastGravity.BOTTOM,
|
||||
Color textColor = Colors.white,
|
||||
Toast toastLength = Toast.LENGTH_SHORT,
|
||||
int timeInSecForIosWeb = 2,
|
||||
double fontSize = 16.0,
|
||||
}) {
|
||||
Fluttertoast.showToast(
|
||||
msg: message,
|
||||
webBgColor: "linear-gradient(to right, #dc1c13, #dc1c13)",
|
||||
webPosition:'right' ,
|
||||
toastLength: toastLength,
|
||||
webShowClose: true,
|
||||
gravity: gravity,
|
||||
timeInSecForIosWeb: timeInSecForIosWeb,
|
||||
textColor: textColor,
|
||||
fontSize: fontSize,
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user