INNER CODE UNIT · Dart

KeyedOverlay

boyan01/overlay_support · lib/src/overlay_keys.dart:6

class KeyedOverlay extends StatelessWidget {
  final Widget child;

  const KeyedOverlay({required Key key, required this.child}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return child;
  }
}

/// [showOverlay] with block other show with the same [ModalKey].
///
/// for example
/// ```dart
/// final modalKey = ModalKey('simple');
///
/// //popup a simple message on top of screen

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…