StackOverlay Widget plugin for Flutter
StackOverlay is a widget that will uses 2 stacked screens(widgets). The foreground widget is overlayed over the background one and can be hidden or shown depending on a boolean value passed to the StackOverlay widget, just take a look at the example for more details.
Originally designed to provide as a way of forcing a "login" screen to automatically be shown should a user not be logged in(to whatever service) then dismissed once the user has logged in.
The widget takes 3 values
- background - this is the background widget (usually the main screen)
- foreground - this is the dismissable foreground widget( for example a Login screen)
- showForeground - a boolean to indicate if the foreground widget should be shown or hidden (defaults to false if not provided)
There is now an optional parameter called wallpaper . If this is specified (it must be a BoxDefinition widget) it is used to generate a background to the complete stack. If your other layers have transparent backgrounds the wallpaper will show through - take a look at the updated example code for more details.
Demo Screen (with wallpaper)
More info can be found here.
Take a look at the plugin installation instructions.
For help getting started with Flutter, view the online documentation.
- Built-in types and core primitives for a Flutter application. [...]
- Support for asynchronous programming, with classes such as Future and Stream. [...]
- Classes and utilities that supplement the collection support in dart:core. [...]
- Encoders and decoders for converting between different data representations, including JSON and UTF-8. [...]
- Built-in types, collections, and other core functionality for every Dart program. [...]
- Interact with developer tools such as the debugger and inspector. [...]
- Mathematical constants and functions, plus a random number generator. [...]
- Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types. [...]
- File, socket, HTTP, and other I/O support for non-web applications. [...]
- Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages. [...]