asuka 2.0.0-nullsafety.1 asuka: ^2.0.0-nullsafety.1 copied to clipboard
Show Snackbars, dialogs, ModalSheets in a single provider. Simple and Clean.
import 'package:example/src/home_page.dart';
import 'package:flutter/material.dart';
import 'package:asuka/asuka.dart' show builder;
import 'src/second/second_page.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.red,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
builder: builder,
initialRoute: '/',
routes: {
'/': (_) => HomePage(title: 'Asuka'),
'/second': (_) => SecondPage(title: 'Second page'),
},
);
}
}