You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implementations should assume defaults but be configurable and extendable by the user for any custom behaviour
code examples of various use-cases should be provided
proper API documentation should be added
APIs
To achieve the above-mentioned objectives following are the public classes that need to be implemented:
1. Backdrop extends InheritedWidget : This class exposes BackdropScaffoldState for any widget down the tree using the convenient Backdrop.of(context). The BackdropScaffoldState in itself exposes some helper methods like fling, showBackLayer, showFrontLayer, underlying Scaffold widget, AnimationController etc.
2. BackdropScaffold extends StatefulWidget : It is the backdrop equivalent to Scaffold widget. This is the main layout widget that implements the core behaviour of the backdrop. It should act as the entry point to implementing backdrop with the most basic use cases as default. Additional behaviours could be added to it using other widgets just like how appBar, drawer, bottomNavigationBar are added with Scaffold.
BackdropAppBar #6 3. BackdropAppBar extends StatefulWidget: It is the backdrop equivalent to AppBar widget. This widget should provide APIs to define the behaviour of the app bar of the backdrop - icon, title, actions, etc. Various app bar uses cases mentioned in the guideline should be configured using this widget.
4. BackdropToggleButtonextends StatelessWidget : A convenient widget to drop in to fling the backdrop back and forth. This could be used in actions in BackdropAppBar to fling backdrop from the right side of the app bar.
5. BackdropNavigationBackLayer extends StatefulWidget : It is the backdrop equivalent of BottomNavigationBar. A convenient widget to implement navigation pattern with the backdrop - using backLayer to display a list of items, tapping on which would display the corresponding widget in frontLayer. BackdropNavigationItem could be used to encapsulate the widget that needs to be displayed, just like how BottomNavigationBarItem is used. However, unlike BottomNavigationBar the UI of a list of items should be configurable by the user.
This is the proposal document for 1.0 version of the package intended to discuss and finalise the APIs of the package.
List of Objectives
APIs
To achieve the above-mentioned objectives following are the public classes that need to be implemented:
1.
Backdropextends InheritedWidget: This class exposesBackdropScaffoldStatefor any widget down the tree using the convenientBackdrop.of(context). TheBackdropScaffoldStatein itself exposes some helper methods likefling,showBackLayer,showFrontLayer, underlyingScaffoldwidget,AnimationControlleretc.2.
BackdropScaffoldextends StatefulWidget: It is the backdrop equivalent toScaffoldwidget. This is the main layout widget that implements the core behaviour of the backdrop. It should act as the entry point to implementing backdrop with the most basic use cases as default. Additional behaviours could be added to it using other widgets just like howappBar,drawer,bottomNavigationBarare added withScaffold.BackdropAppBar #6 3.
BackdropAppBarextends StatefulWidget: It is the backdrop equivalent toAppBarwidget. This widget should provide APIs to define the behaviour of the app bar of the backdrop - icon, title, actions, etc. Various app bar uses cases mentioned in the guideline should be configured using this widget.4.
BackdropToggleButtonextends StatelessWidget: A convenient widget to drop in to fling the backdrop back and forth. This could be used inactionsinBackdropAppBarto fling backdrop from the right side of the app bar.5.
BackdropNavigationBackLayerextends StatefulWidget: It is the backdrop equivalent ofBottomNavigationBar. A convenient widget to implement navigation pattern with the backdrop - usingbackLayerto display a list of items, tapping on which would display the corresponding widget infrontLayer.BackdropNavigationItemcould be used to encapsulate the widget that needs to be displayed, just like howBottomNavigationBarItemis used. However, unlikeBottomNavigationBarthe UI of a list of items should be configurable by the user.Other Tasks
Quick Links