create static method
Hover
create({})
Create an app with Hover. This method returns a stateless widget that contains a MaterialApp nested inside a MultiProvider.
themes
: A key-value store of themes used by the app.
The current theme can be set by calling setThemeByName.
The app loads the first theme in this Map on startup.
Implementation
static Hover create({
required List<HoverPage> pages,
required Map<String, ThemeData> themes,
List<SingleChildWidget> providers = const [],
Widget Function(BuildContext)? appBarBuilder,
Widget Function(BuildContext)? drawerBuilder,
Widget Function(BuildContext)? floatingActionButtonBuilder,
}) {
return Hover._(
pages: pages,
themes: themes,
providers: providers,
globalWidgets: HoverGlobalWidgets(
appBarBuilder: appBarBuilder,
drawerBuilder: drawerBuilder,
floatingActionButtonBuilder: floatingActionButtonBuilder,
),
);
}