| 1234567891011121314151617181920212223 |
- import 'package:flutter/material.dart';
- import 'package:fluttertoast/fluttertoast.dart';
- import '../constant/color_res.dart';
- /// @author: bo.zeng
- /// @email: cnhbwds@gmail.com
- /// @date: 2025 2025/4/9 16:00
- /// @description:
- void showToast(String message) {
- if (message.isEmpty) {
- return;
- }
- Fluttertoast.showToast(
- msg: message,
- toastLength: Toast.LENGTH_SHORT,
- gravity: ToastGravity.CENTER,
- timeInSecForIosWeb: 1,
- backgroundColor: colorToastBackground,
- textColor: Colors.white,
- fontSize: 16.0,
- );
- }
|