refactor(diary): Even more refactoring

This commit is contained in:
2024-03-05 17:35:48 +03:00
parent 3cf61ce5ca
commit 3019a5a264
3 changed files with 75 additions and 57 deletions

View File

@@ -151,7 +151,7 @@ class _AppNavigationScreenState extends State<AppNavigationScreen> {
}
/// Section Widget
Widget _buildAppNavigation(BuildContext context) {
_buildAppNavigation(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: Color(0XFFFFFFFF),
@@ -205,15 +205,13 @@ class _AppNavigationScreenState extends State<AppNavigationScreen> {
}
/// Common widget
Widget _buildScreenTitle(
_buildScreenTitle(
BuildContext context, {
required String screenTitle,
Function? onTapScreenTitle,
}) {
return GestureDetector(
onTap: () {
onTapScreenTitle!.call();
},
onTap: onTapScreenTitle!.call(),
child: Container(
decoration: BoxDecoration(
color: Color(0XFFFFFFFF),