flutter_adaptive library

A series of widgets and utilities that adapt to the current platform.

Classes

ActionSheetItem
BottomNavigationBar
An adaptive bottom navigation bar.
Button
An adaptive button.
DialogAction
An adaptive dropdown button.
ExpansionTile
An adaptive expansion tile.
IconButton
An adaptive icon button.
Icons
An series of icons that adapt to the current platform's look.
ListTile
An adaptive list tile.
An adaptive menu button.
Route
An adaptive route.
SearchTextField
An adaptive search text field.
Spinner
An adaptive spinner.
SwitchListTile
An adaptive switch list tile.
TapArea
An adaptive tap area.
TextField
An adaptive text field.
ToggleButtons
An adaptive toggle buttons widget.

Properties

isIOS bool
final
onGeneratePreviousPageTitle ↔ (String? Function(BuildContext context)?)
This will be called whenever the adaptive.Route's previousPageTitle needs to be generated.
getter/setter pair
scrollPhysics ScrollPhysics
final

Functions

showActionSheet({required BuildContext context, required List<ActionSheetItem> items}) Future<void>
Shows an action sheet.
showDatePicker({required BuildContext context, required DateTime firstDate, required DateTime initialDate, required DateTime lastDate}) Future<DateTime?>
Shows a date picker.
showDialog<T>({required BuildContext context, required List<DialogAction> actions, String? title, String? content, bool? barrierDismissible}) Future<T?>
Shows a dialog