-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal document for v1.0 #5
Comments
Moved from: https://gitlab.com/daadu/backdrop/-/issues/7 |
@all-contributors please add @daadu for Code, Ideas & Planning |
I've put up a pull request to add @daadu! 🎉 |
@all-contributors please add @WieFel for Code, Documentation |
I've put up a pull request to add @WieFel! 🎉 |
@all-contributors please add @danielborges93 for bug,code |
Congrats @WieFel - We have implemented all widgets planned. Give yourself a pat on your back!! |
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.
Backdrop
extends InheritedWidget
: This class exposesBackdropScaffoldState
for any widget down the tree using the convenientBackdrop.of(context)
. TheBackdropScaffoldState
in itself exposes some helper methods likefling
,showBackLayer
,showFrontLayer
, underlyingScaffold
widget,AnimationController
etc.2.
BackdropScaffold
extends StatefulWidget
: It is the backdrop equivalent toScaffold
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 howappBar
,drawer
,bottomNavigationBar
are added withScaffold
.BackdropAppBar #6 3.
BackdropAppBar
extends StatefulWidget
: It is the backdrop equivalent toAppBar
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.
BackdropToggleButton
extends StatelessWidget
: A convenient widget to drop in to fling the backdrop back and forth. This could be used inactions
inBackdropAppBar
to fling backdrop from the right side of the app bar.5.
BackdropNavigationBackLayer
extends StatefulWidget
: It is the backdrop equivalent ofBottomNavigationBar
. A convenient widget to implement navigation pattern with the backdrop - usingbackLayer
to display a list of items, tapping on which would display the corresponding widget infrontLayer
.BackdropNavigationItem
could be used to encapsulate the widget that needs to be displayed, just like howBottomNavigationBarItem
is used. However, unlikeBottomNavigationBar
the UI of a list of items should be configurable by the user.Other Tasks
Quick Links
The text was updated successfully, but these errors were encountered: