new HourPicker

This commit is contained in:
mohammad
2024-09-12 14:18:53 +03:00
parent dbb3450c32
commit 0ac3e79c30
5 changed files with 8 additions and 45 deletions

View File

@ -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,
);
}