exception_toast 0.9.1 copy "exception_toast: ^0.9.1" to clipboard
exception_toast: ^0.9.1 copied to clipboard

discontinued

A flutter package that shows exceptions in a toast message (overlay message to user)

example/lib/main.dart

import 'package:flutter/material.dart';
//import 'dart:async';
//import 'package:flutter/services.dart';
import 'package:exception_toast/exception_toast.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: RaisedButton(
            child: Text('call exception'),
            onPressed: () {
              ExceptionToast.show(error: 'my error message', trace: null);
            },
          ),
        ),
      ),
    );
  }
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A flutter package that shows exceptions in a toast message (overlay message to user)

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on exception_toast