flutter_ahlib library

Classes

ActionController
Controller for some action, include a map<String, Action> to save callbacks.
AppendIndicator
A indicator same with RefreshIndicator, show in the bottom of view, mainly for showing append infomation.
AppendIndicatorState
State for AppendIndicator, only show() can be used.
DrawerAction
DrawerItem used to invoke an action (void Function() action)
DrawerDivider
DrawerItem used to show a divider (Divider divider)
DrawerItem
abstract type for deawer item
DrawerListView<T>
A wrapped Column for Drawer Demo: [...]
DrawerPage<T>
DrawerItem used for navigator a page (Widget view)
IconText
Wrapped Row shown for Icon and Text, mainly used in showPopupMenu
LocalOrNetworkImageProvider
ImageProvider for local file or network image cache
PaginationListView<T>
Appendable pagination ListView which packing AppendIndicator, RefreshIndicator, PlaceholderText, Scrollbar and ListView
PaginationSliverListView<T>
Appendable pagination SliverListView which packing AppendIndicator, RefreshIndicator, PlaceholderText, Scrollbar and ListView
PaginationStaggeredGridView<T>
Appendable pagination StaggeredGridView which packing AppendIndicator, RefreshIndicator, PlaceholderText, Scrollbar and ListView
PlaceholderSetting
Setting for PlaceholderText display text and progress
PlaceholderText
Placeholder text used for mainly ListView, Order: normal (!isEmpty) -> loading (isLoading) -> error (errorText != null) -> nothing (else)
PopupActionItem
item for showPopupMenu, mainly will be used in IconText
RefreshableListView<T>
Refreshable ListView which packing RefreshIndicator, PlaceholderText, Scrollbar and ListView
RefreshableSliverListView<T>
Refreshable SliverListView which packing RefreshIndicator, PlaceholderText, Scrollbar and ListView
RefreshableStaggeredGridView<T>
Refreshable StaggeredGridView which packing AppendIndicator, RefreshIndicator, PlaceholderText, Scrollbar and ListView
RippleSizedView
A replace widget of ListTile for padding
ScrollFabController
A auto controller for ScrollFloatingActionButton, include show fab and hide fav function
ScrollFloatingActionButton
A fab which include scroll animation, which use ScrollController and register ScrollFabController
ScrollMoreController
More function of ScrollController [...]
SeriationListView<T, U>
Appendable series ListView which packing AppendIndicator, RefreshIndicator, PlaceholderText, Scrollbar and ListView
SeriationSliverListView<T, U>
Appendable series SliverListView which packing AppendIndicator, RefreshIndicator, PlaceholderText, Scrollbar and SliverList
SeriationStaggeredGridView<T, U>
Appendable series StaggeredGridView which packing AppendIndicator, RefreshIndicator, PlaceholderText, Scrollbar and ListView
SeriesData<T, U>
data model for AppendableSeriesListView and AppendableSeriesStaggeredGridView
SliverContainer
Wrap Container into SliverToBoxAdapter

Functions

showPopupMenu({BuildContext context, Widget title, List<PopupActionItem> items}) → void
show popup menu of List<PopupActionItem by SimpleDialog

Enums

DrawerItemType
PlaceholderState
normal : !isEmpty, loading : isLoading, error : errorText != null && errorText.isNotEmpty, empty : isEmpty
RippleSizedViewPosition

Typedefs

Action<T>() → T
AppendCallback() Future<void>
Append callback funtion, used in AppendIndicator
GetNonPageDataFunction<T>() Future<List<T>>
get non-page data function, used in RefreshableListView and RefreshableStaggeredGridView (refreshable)
GetPageDataFunction<T>({int page}) Future<List<T>>
get page data function, used in AppendableListView (appendable)
GetSeriesDataFunction<T, U>({U maxId}) Future<SeriesData<T, U>>
get series data function, used in AppendableListView (appendable)
PlaceholderStateChangedCallback(PlaceholderState) → void
Placeholder state changed callback function, used in PlaceholderText