-
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
Proper demo app with multiple use-cases #7
Comments
Moved from: https://gitlab.com/daadu/backdrop/-/issues/13 |
@WieFel Let me know your views. Self-assign it to yourself if you are interested in working on this! |
I will be working on this in the next time! |
I did some brainstorming and came up with the following: The app opens with one default use-case already on the main screen. The action bar has two buttons, one for switching to the preview of the use-case and one for showing the source code. Another idea would be to use tabs instead of the two action-buttons... For the preview of the use-cases the following package could be used: https://pub.dev/packages/device_frame. This way, one could distinguish between the app bar of the demo app and the app bar of the use-case that is being previewed. However, I don't know if this is a good idea in the web-version of the demo app. @daadu What do you think? Any other suggestions before I start to implement this? |
I was thinking of a check the following layout of I think on full screen it is clear about how to toggle between source code, info. For Mobile we can @WieFel Let me know if you have better idea. |
Instead of Check the following: I suggest we use same colour scheme as Gallery App. We could potentially make these feature as another independent package which enable other package developer/maintainer to publish GitHub pages show casing demo of their package. This new package could be taglined as - "Create Flutter Gallery like demo app for your package." |
@daadu ok LGTM, I will try to implement it as you described! |
@daadu Actually I have an idea: |
@WieFel Go Ahead. |
@daadu in the end, taking the complete gallery app seems to be overkill. In terms of use cases, I found the following 4 here:
@daadu any other suggestions/improvements? |
@WieFel Your suggestions look ok to start with. |
This will be a separate Flutter Project within this project (like:
example
) nameddemo
. This app would be a likegallery
app (https://gallery.flutter.dev) provided by Flutter to demonstrate allmaterial
andcupertino
widget with code snippet embedded in itself.Check the following screenshot from
gallery
app forBanner
widget:Along with the demo itself it shows other options - info, code (with copy option), documentation, full screen (toggle the widget demo for mobile screen and full screen)
We should build similar
demo
flutter application that will be hosted on Github Pages for user to quickly check [#12]. It should demonstrate ideally all use cases ofBackdrop
as mentioned in MDG.The
example
would just show simplest of the use-case. But in the starting ofexample.dart
we should add link to demo so that users form pub.dev can check the demo easily.The text was updated successfully, but these errors were encountered: