updated back button visibility

This commit is contained in:
Deep Koluguri 2025-11-06 00:11:16 -05:00
parent 4bf7c2a6f6
commit 4045a61406
2 changed files with 16 additions and 2 deletions

View File

@ -74,13 +74,22 @@ class _GroupDetailsPageState extends State<GroupDetailsPage> with SingleTickerPr
return Scaffold( return Scaffold(
backgroundColor: Colors.grey.shade50, backgroundColor: Colors.grey.shade50,
appBar: AppBar( appBar: AppBar(
leading: IconButton(
icon: Icon(Icons.arrow_back, color: Colors.grey.shade800, size: 24.w),
onPressed: () => Navigator.pop(context),
tooltip: 'Back',
),
title: Text( title: Text(
widget.group.name, widget.group.name,
style: TextStyle(fontSize: 20.sp, fontWeight: FontWeight.w600), style: TextStyle(
fontSize: 20.sp,
fontWeight: FontWeight.w600,
color: Colors.grey.shade900,
),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
backgroundColor: Colors.white, backgroundColor: Colors.white,
foregroundColor: Colors.black87, iconTheme: IconThemeData(color: Colors.grey.shade800),
elevation: 0, elevation: 0,
actions: [ actions: [
if (widget.group.isForming) if (widget.group.isForming)

View File

@ -59,6 +59,11 @@ class _MemberGroupDetailsPageState extends State<MemberGroupDetailsPage>
return Scaffold( return Scaffold(
backgroundColor: Colors.grey.shade50, backgroundColor: Colors.grey.shade50,
appBar: AppBar( appBar: AppBar(
leading: IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: () => Navigator.pop(context),
tooltip: 'Back',
),
title: Text( title: Text(
widget.group.name, widget.group.name,
style: TextStyle(fontSize: 20.sp, fontWeight: FontWeight.w600), style: TextStyle(fontSize: 20.sp, fontWeight: FontWeight.w600),