forked from eatvio/eatvio_app
refactor(diary): Refactoring flutter analyze finished. Started refactoring Run Code Metrics
This commit is contained in:
@@ -21,9 +21,7 @@ class ExitButton extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
onTap!.call();
|
||||
},
|
||||
onTap: onTapCall,
|
||||
child: Padding(
|
||||
padding: margin ?? EdgeInsets.zero,
|
||||
child: Text(
|
||||
@@ -35,4 +33,8 @@ class ExitButton extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void onTapCall() {
|
||||
onTap!.call();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user