Skip to content

Commit d2e086b

Browse files
committed
removed unused code
1 parent 6afd589 commit d2e086b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

lib/components/alert/gf_alert.dart

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,12 @@ class GFAlert extends StatefulWidget {
6161
}
6262

6363
class _GFAlertState extends State<GFAlert> with TickerProviderStateMixin {
64-
String title;
65-
String content;
66-
Widget child;
67-
Widget contentChild;
68-
Widget bottombar;
69-
7064

7165
AnimationController animationController;
7266
Animation<double> animation;
7367

7468
@override
7569
void initState() {
76-
content= widget.content;
77-
title = widget.title;
78-
child=widget.child;
79-
contentChild=widget.contentChild;
80-
bottombar=widget.bottombar;
8170

8271
animationController = AnimationController(
8372
duration: const Duration(milliseconds: 300),
@@ -97,18 +86,6 @@ class _GFAlertState extends State<GFAlert> with TickerProviderStateMixin {
9786
super.dispose();
9887
}
9988

100-
101-
102-
@override
103-
void didUpdateWidget(GFAlert oldWidget){
104-
content= widget.content;
105-
title = widget.title;
106-
child=widget.child;
107-
contentChild=widget.contentChild;
108-
bottombar=widget.bottombar;
109-
super.didUpdateWidget(oldWidget);
110-
}
111-
11289
@override
11390
Widget build(BuildContext context) => FadeTransition(
11491
opacity: animation,

0 commit comments

Comments
 (0)