0 purchases
success error overlay
success_error_overlay #
A plugin for showing an overlay above screen with a nice animation and highly Customizable colors and text
Basic Example #
!!! Complete Example in the Example Tab
SuccessErrorOverlay(
onTap: () => setState(() => isVisible = false),
isCorrect: true,
),
copied to clipboard
Complete Example #
import 'package:flutter/material.dart';
import 'package:success_error_overlay/success_error_overlay.dart';
class Example extends StatefulWidget {
@override
_ExampleState createState() => _ExampleState();
}
class _ExampleState extends State<Example> {
bool isVisible = false;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
fit: StackFit.expand,
children: <Widget>[
Center(
child: RaisedButton(
onPressed: () => setState(() => isVisible = true),
child: Text("Show Overlay"),
),
),
!isVisible ? Container() : SuccessErrorOverlay(
onTap: () => setState(() => isVisible = false),
isCorrect: true,
),
],
),
);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.