From fe3e2fb3fa5320b03b781b4c9efaa91b46f61ff0 Mon Sep 17 00:00:00 2001 From: dwindown Date: Mon, 30 Mar 2026 22:14:51 +0700 Subject: [PATCH] Remove legacy tap-based admin entry --- lib/features/home/main_screen.dart | 77 +++++++++++++----------------- 1 file changed, 34 insertions(+), 43 deletions(-) diff --git a/lib/features/home/main_screen.dart b/lib/features/home/main_screen.dart index 972c984..c01aead 100644 --- a/lib/features/home/main_screen.dart +++ b/lib/features/home/main_screen.dart @@ -9,7 +9,6 @@ import '../../core/sacred_tokens.dart'; import '../../core/enums.dart'; import '../../providers.dart'; import '../../data/local/models.dart'; -import '../admin/admin_screen.dart'; import 'unsplash_background.dart'; import 'dart:io'; @@ -226,50 +225,42 @@ class MainScreen extends ConsumerWidget { child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - // Left: Mosque name + address (TAPPABLE FOR ADMIN PANEL) - InkWell( - onTap: () { - Navigator.of(context).push( - MaterialPageRoute(builder: (_) => const AdminScreen()), - ); - }, - borderRadius: BorderRadius.circular(8 * s), - child: Padding( - padding: EdgeInsets.all(8.0 * s), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - settings.masjidName, - style: GoogleFonts.plusJakartaSans( - fontSize: 32 * s, - fontWeight: FontWeight.w700, - color: SacredColors.primary, - letterSpacing: -0.5 * s, + // Left: Mosque name + address + Padding( + padding: EdgeInsets.all(8.0 * s), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + settings.masjidName, + style: GoogleFonts.plusJakartaSans( + fontSize: 32 * s, + fontWeight: FontWeight.w700, + color: SacredColors.primary, + letterSpacing: -0.5 * s, + ), + ), + SizedBox(height: 4 * s), + Row( + children: [ + HugeIcon( + icon: HugeIcons.strokeRoundedLocation01, + color: SacredColors.secondary, + size: 16 * s, ), - ), - SizedBox(height: 4 * s), - Row( - children: [ - HugeIcon( - icon: HugeIcons.strokeRoundedLocation01, - color: SacredColors.secondary, - size: 16 * s, + SizedBox(width: 4 * s), + Text( + settings.masjidAddress, + style: GoogleFonts.manrope( + fontSize: 14 * fs, + fontWeight: FontWeight.w500, + color: SacredColors.onSurface.withValues(alpha: 0.7), + letterSpacing: 0.5 * s, ), - SizedBox(width: 4 * s), - Text( - settings.masjidAddress, - style: GoogleFonts.manrope( - fontSize: 14 * fs, - fontWeight: FontWeight.w500, - color: SacredColors.onSurface.withValues(alpha: 0.7), - letterSpacing: 0.5 * s, - ), - ), - ], - ), - ], - ), + ), + ], + ), + ], ), ),