biofpo_message 1.0.1+6 copy "biofpo_message: ^1.0.1+6" to clipboard
biofpo_message: ^1.0.1+6 copied to clipboard

پروژه نمایش پیغام با موضوع، توضیحات و رنگ.

example/main.dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:biofpo_message/biofpo_message.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(

      debugShowCheckedModeBanner: false,
      title: 'BioFpo Message Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home:Directionality(textDirection: TextDirection.rtl, child:  MessageDemoScreen()),
    );
  }
}

class MessageDemoScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("BioFpo Message Example")),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(
              onPressed: () {
                BioFpoMessage.showSuccess(
                  title: "موفقیت",
                  message: "عملیات با موفقیت انجام شد",

                );
              },
              child: Text("نمایش پیام موفقیت"),
              style: ElevatedButton.styleFrom(backgroundColor: Colors.green),
            ),
            SizedBox(height: 20),
            ElevatedButton(
              onPressed: () {
                BioFpoMessage.showError(
                  title: "خطا",
                  message: "مشکلی رخ داده است",
                );
              },
              child: Text("نمایش پیام خطا"),
              style: ElevatedButton.styleFrom(backgroundColor: Colors.red),
            ),
            SizedBox(height: 20),
            ElevatedButton(
              onPressed: () {
                BioFpoMessage.showInfo(
                  title: "اطلاعات",
                  message: "این یک پیام اطلاعاتی است",
                );
              },
              child: Text("نمایش پیام اطلاعاتی"),
              style: ElevatedButton.styleFrom(backgroundColor: Colors.blue),
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
125
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

پروژه نمایش پیغام با موضوع، توضیحات و رنگ.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, get

More

Packages that depend on biofpo_message