custom_error_page 0.0.6 copy "custom_error_page: ^0.0.6" to clipboard
custom_error_page: ^0.0.6 copied to clipboard

A flutter plugin for custom error screens.

example/lib/main.dart

import 'dart:io';

import 'package:flutter/material.dart';

import 'package:custom_error_page/custom_error_page.dart';

void main() {
  CustomErrorPage.initialize();
  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    throw (StdoutException);
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: const Center(
          child: Text('How did you get here\n'),
        ),
      ),
    );
  }
}
5
likes
80
pub points
0%
popularity

Publisher

unverified uploader

A flutter plugin for custom error screens.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, google_fonts, lottie, plugin_platform_interface

More

Packages that depend on custom_error_page