error_message 0.0.5 copy "error_message: ^0.0.5" to clipboard
error_message: ^0.0.5 copied to clipboard

This plugin lets you show a message in a simple way.

example/lib/main.dart

import 'package:error_message/error_message.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    themeMode: ThemeMode.system,
    theme: ThemeData.light(),
    darkTheme: ThemeData.dark(),
    home: MainApp(),
  ));
}

class MainApp extends StatefulWidget {
  const MainApp({Key? key}) : super(key: key);

  @override
  _MainAppState createState() => _MainAppState();
}

class _MainAppState extends State<MainApp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
          child: ErrorMessage(
              icon: Icon(Icons.error),
              title: "Error Title",
              description: "Error description",
              buttonLabel: "BUTTON",
              onPressed: () {})),
    );
  }
}
1
likes
140
points
34
downloads

Publisher

verified publisherpub.tamilkannancv.dev

Weekly Downloads

This plugin lets you show a message in a simple way.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on error_message