show_up

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

show up

Show Up #
A Flutter plugin to easily display and remove overlapping widgets anywhere in the application.
environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.20.0"
copied to clipboard
Getting Started #
To use this plugin, add show_up as a dependency in your pubspec.yaml file. For example:
dependencies:
show_up: ^1.0.0
copied to clipboard
Usage #
Import the package:
import 'package:show_up/show_up.dart';
copied to clipboard
Wrap the child widgets of MaterialApp where Show Up widgets.
void main() {
runApp(MaterialApp(
home: WrapUp(child: MyApp()),
));
}
copied to clipboard
Notice #
Shows a default notification positioned by Sector.
ElevatedButton(
child: Text('Notice'),
onPressed: () {
ShowUp().notice(
backgroundColor: Colors.red,
text: 'notification',
color: Colors.white,
icon: Icon(
Icons.warning,
color: Colors.white,
),
sector: Sector.topRight,
toolbar: true,
);
},
)
copied to clipboard
Sectorized #
Shows a widget positioned by Sector.
ElevatedButton(
child: Text('Sectorized'),
onPressed: () {
ShowUp().sectorized(
child: AnimatedFlutterLogo(),
sector: Sector.bottomLeft,
toolbar: true,
);
},
)
copied to clipboard
Positioned #
Shows a widget positioned by LTRB params.
ElevatedButton(
child: Text('Positioned'),
onPressed: () {
ShowUp().positioned(
child: AnimatedFlutterLogo(),
left: MediaQuery.of(context).size.width / 2 - 20,
top: MediaQuery.of(context).size.height / 2 - 20,
;
},
)
copied to clipboard
Screen #
Shows an overlayed screen.
ElevatedButton(
child: Text('Screen'),
onPressed: () {
ShowUp().screen(
child: Container(
color: Colors.green[500],
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
AnimatedFlutterLogo(),
ElevatedButton(
child: Text('Close'),
onPressed: () => ShowUp().cleanOverlay(),
),
],
),
),
),
);
},
)
copied to clipboard
License #
MIT License

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator