refactor(diary): Refactoring flutter analyze finished. Started refactoring Run Code Metrics

This commit is contained in:
2024-03-05 12:46:01 +03:00
parent e72367c656
commit 0f37f378a3
9 changed files with 225 additions and 200 deletions

View File

@@ -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();
}
}