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.

nexever logo

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

Features #

  • Display toast messages with customizable parameters such as message text, background color, position, duration, text style, and more.
  • Easy to integrate into Flutter applications.

Installation #

Add nex_common_toast to your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  nex_common_toast: <latest-version>

Usage #

Import the package in your Dart file:

import 'package:flutter/material.dart';
import 'package:nex_common_toast/nex_common_toast.dart';
class MyToast extends ToastFile {
  void showToastMessage() {
    toastMsg(
      msg: "Hello, World!",
      backgroundColor: Colors.blue,
      position: ToastPosition.bottom,
      duration: Duration(seconds: 3),
      textStyle: TextStyle(fontSize: 16.0, color: Colors.white),
      radius: 10.0,
      textOverflow: TextOverflow.ellipsis,
      textMaxLines: 2,
      textAlign: TextAlign.left,
      textDirection: TextDirection.rtl,
    );
  }
}

Authers #

Chandan Kumar Singh
Chandan Kumar Singh
Shubhpreet Rana
Shubhpreet Rana
0
likes
150
points
32
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)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, oktoast

More

Packages that depend on nex_common_toast