Remove legacy tap-based admin entry

This commit is contained in:
dwindown
2026-03-30 22:14:51 +07:00
parent fd6db5a29b
commit fe3e2fb3fa

View File

@@ -9,7 +9,6 @@ import '../../core/sacred_tokens.dart';
import '../../core/enums.dart'; import '../../core/enums.dart';
import '../../providers.dart'; import '../../providers.dart';
import '../../data/local/models.dart'; import '../../data/local/models.dart';
import '../admin/admin_screen.dart';
import 'unsplash_background.dart'; import 'unsplash_background.dart';
import 'dart:io'; import 'dart:io';
@@ -226,50 +225,42 @@ class MainScreen extends ConsumerWidget {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
// Left: Mosque name + address (TAPPABLE FOR ADMIN PANEL) // Left: Mosque name + address
InkWell( Padding(
onTap: () { padding: EdgeInsets.all(8.0 * s),
Navigator.of(context).push( child: Column(
MaterialPageRoute(builder: (_) => const AdminScreen()), crossAxisAlignment: CrossAxisAlignment.start,
); children: [
}, Text(
borderRadius: BorderRadius.circular(8 * s), settings.masjidName,
child: Padding( style: GoogleFonts.plusJakartaSans(
padding: EdgeInsets.all(8.0 * s), fontSize: 32 * s,
child: Column( fontWeight: FontWeight.w700,
crossAxisAlignment: CrossAxisAlignment.start, color: SacredColors.primary,
children: [ letterSpacing: -0.5 * s,
Text( ),
settings.masjidName, ),
style: GoogleFonts.plusJakartaSans( SizedBox(height: 4 * s),
fontSize: 32 * s, Row(
fontWeight: FontWeight.w700, children: [
color: SacredColors.primary, HugeIcon(
letterSpacing: -0.5 * s, icon: HugeIcons.strokeRoundedLocation01,
color: SacredColors.secondary,
size: 16 * s,
), ),
), SizedBox(width: 4 * s),
SizedBox(height: 4 * s), Text(
Row( settings.masjidAddress,
children: [ style: GoogleFonts.manrope(
HugeIcon( fontSize: 14 * fs,
icon: HugeIcons.strokeRoundedLocation01, fontWeight: FontWeight.w500,
color: SacredColors.secondary, color: SacredColors.onSurface.withValues(alpha: 0.7),
size: 16 * s, 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,
),
),
],
),
],
),
), ),
), ),