flutter_easy_dialogs 2.0.1-alpha flutter_easy_dialogs: ^2.0.1-alpha copied to clipboard
Easy, lightweight and flexible service for showing dialogs inside your Flutter application.
import 'package:example/custom_dialog_manager.dart';
import 'package:example/easy_router.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easy_dialogs/flutter_easy_dialogs.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Easy Dialogs Example',
theme: ThemeData(
primarySwatch: Colors.blue,
),
initialRoute: EasyRouter.initialRoute,
onGenerateRoute: EasyRouter.onGenerateRoute,
builder: FlutterEasyDialogs.builder(
/// Provide custom dialog agent
customManagerBuilder: (overlayController) =>
[MyDialogManager(overlayController: overlayController)],
),
);
}
}