asuka library Null safety
Classes
- AsukaSnackbar
- Defines the layout and behavior of a AsukaSnackbar.
Constants
- Asuka → const _Asuka
-
_Asuka._()
Properties
- asukaHeroController → HeroController
-
@Deprecated('Use `Asuka.asukaHeroController` instead'), read-only
Functions
-
addOverlay(
OverlayEntry entry, {OverlayEntry? below, OverlayEntry? above, bool callback = false}) → void -
Insert the given entry into the overlay.
@Deprecated('Use `Asuka.addOverlay` instead')
-
ainsertAllOverlay(
Iterable< OverlayEntry> entries, {OverlayEntry? below, OverlayEntry? above, bool callback = false}) → void -
Insert all the entries in the given iterable.
@Deprecated('Use `Asuka.ainsertAllOverlay` instead')
-
builder(
BuildContext context, Widget? child) → Widget -
init Asuka: Add in your MaterialApp
return MaterialApp(
builder: asuka.builder,
...
@Deprecated('Use `Asuka.builder` instead.')
-
hideCurrentSnackBar(
{SnackBarClosedReason reason = material.SnackBarClosedReason.remove, bool callback = false}) → void -
Removes the current SnackBar by running its normal exit animation.
@Deprecated('Use `Asuka.hideCurrentSnackBar` instead')
-
removeCurrentSnackBar(
{SnackBarClosedReason reason = material.SnackBarClosedReason.remove, bool callback = false}) → void -
Removes the current SnackBar (if any) immediately.
@Deprecated('Use `Asuka.removeCurrentSnackBar` instead')
-
showBottomSheet<
T> (Widget builder(BuildContext), {Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, bool callback = false}) → PersistentBottomSheetController< T> -
Shows a material design bottom sheet in the nearest Scaffold. To show
a persistent bottom sheet, use the Scaffold.bottomSheet.
@Deprecated('Use `Asuka.showBottomSheet` instead')
-
showDialog<
T> ({required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor, bool useSafeArea = true, RouteSettings? routeSettings, bool callback = false}) → Future< T?> -
Displays a Material dialog above the current contents of the app, with
Material entrance and exit animations, modal barrier color, and modal
barrier behavior (dialog is dismissible with a tap on the barrier).
@Deprecated('Use `Asuka.showDialog` instead')
-
showModalBottomSheet<
T> ({required WidgetBuilder builder, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, Color? barrierColor, bool enableDrag = true, bool isDismissible = true, bool isScrollControlled = false, RouteSettings? routeSettings, AnimationController? transitionAnimationController}) → Future< T?> -
Shows a modal material design bottom sheet.
@Deprecated('Use `Asuka.showModalBottomSheet` instead')
-
showSnackBar(
SnackBar snackbar, {bool callback = false}) → ScaffoldFeatureController< SnackBar, SnackBarClosedReason> -
Shows a SnackBar at the bottom of the scaffold.
@Deprecated('Use `Asuka.showSnackBar` instead')