nex_common_toast 0.0.3 copy "nex_common_toast: ^0.0.3" to clipboard
nex_common_toast: ^0.0.3 copied to clipboard

A Flutter package that provides a convenient way to display customizable toast messages using the `oktoast` package.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:nex_common_toast/nex_cmmon_toast.dart';

void main() {
  MyToast().showToastMessage();
  runApp(const Center(child: Text("Hello, World!")));
}

class MyToast extends ToastFile {
  void showToastMessage() {
    toastMsg(
      msg: "Hello, World!",
      backgroundColor: Colors.blue,
      position: ToastPosition.bottom,
      duration: const Duration(seconds: 3),
      textStyle: const TextStyle(fontSize: 16.0, color: Colors.white),
      radius: 10.0,
      textOverflow: TextOverflow.ellipsis,
      textMaxLines: 2,
      textAlign: TextAlign.left,
      textDirection: TextDirection.rtl,
    );
  }
}
0
likes
0
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides a convenient way to display customizable toast messages using the `oktoast` package.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, oktoast

More

Packages that depend on nex_common_toast