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.

Using StackOverlay

Take a look at the plugin installation instructions.

Getting Started

For help getting started with Flutter, view the online documentation.

Libraries

stack_overlay

Dart

dart:ui
Built-in types and core primitives for a Flutter application. [...]

Core

dart:async
Support for asynchronous programming, with classes such as Future and Stream. [...]
dart:collection
Classes and utilities that supplement the collection support in dart:core. [...]
dart:convert
Encoders and decoders for converting between different data representations, including JSON and UTF-8. [...]
dart:core
Built-in types, collections, and other core functionality for every Dart program. [...]
dart:developer
Interact with developer tools such as the debugger and inspector. [...]
dart:math
Mathematical constants and functions, plus a random number generator. [...]
dart:typed_data
Lists that efficiently handle fixed sized data (for example, unsigned 8 byte integers) and SIMD numeric types. [...]

VM

dart:io
File, socket, HTTP, and other I/O support for non-web applications. [...]
dart:isolate
Concurrent programming using isolates: independent workers that are similar to threads but don't share memory, communicating only via messages. [...]