over_screen_widget 1.0.0+1 copy "over_screen_widget: ^1.0.0+1" to clipboard
over_screen_widget: ^1.0.0+1 copied to clipboard

Allow you to place another widget over other. Eg create loading.

example/example.md

import 'package:over_screen_widget/over_screen_widget.dart';
...
OverScreenWidget(
    keepChildVisible: true,
    // Main content
    builder: (controller) {
        // After 5 seconds, hide content that is over main content
        Future.delayed(Duration(seconds: 5)).then((_) => controller.hide());

        // return main content
        return Center(
            child: Text('Main content')
        );
    },
    // Content over main content
    overScreenContent: Container(
        color: Colors.grey.withOpacity(0.5),
        alignment: Alignment.center,
        // Loading over main content
        child: CircularProgressIndicator(), 
    ),
);
2
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Allow you to place another widget over other. Eg create loading.

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on over_screen_widget