
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
parameter에서 아래 history 갔는데 뒤로가기 아이콘이 아닌 햄버거 아이콘이 뜨고 눌러도 아무 반응이 없는데 왜그럴까요?

import '/backend/backend.dart';
import '/components/drawercomponent_widget.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/flutter_flow/flutter_flow_widgets.dart';
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';
import 'admin_model.dart';
export 'admin_model.dart';
class AdminWidget extends StatefulWidget {
const AdminWidget({super.key});
@override
State<AdminWidget> createState() => _AdminWidgetState();
}
class _AdminWidgetState extends State<AdminWidget> {
late AdminModel _model;
final scaffoldKey = GlobalKey<ScaffoldState>();
@override
void initState() {
super.initState();
_model = createModel(context, () => AdminModel());
}
@override
void dispose() {
_model.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: () {
FocusScope.of(context).unfocus();
FocusManager.instance.primaryFocus?.unfocus();
},
child: Scaffold(
key: scaffoldKey,
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
drawer: Drawer(
elevation: 16,
child: wrapWithModel(
model: _model.drawercomponentModel,
updateCallback: () => safeSetState(() {}),
child: DrawercomponentWidget(),
),
),
appBar: AppBar(
backgroundColor: FlutterFlowTheme.of(context).primary,
automaticallyImplyLeading: true,
title: Text(
'Admin',
style: FlutterFlowTheme.of(context).headlineMedium.override(
fontFamily: 'Inter Tight',
color: Colors.white,
fontSize: 22,
letterSpacing: 0.0,
),
),
actions: [],
centerTitle: false,
elevation: 2,
),
body: SafeArea(
top: true,
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(16, 16, 16, 16),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
StreamBuilder<List<UsersRecord>>(
stream: queryUsersRecord(
queryBuilder: (usersRecord) =>
usersRecord.orderBy('created_time', descending: true),
),
builder: (context, snapshot) {
// Customize what your widget looks like when it's loading.
if (!snapshot.hasData) {
return Center(
child: SizedBox(
width: 50,
height: 50,
child: CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation<Color>(
FlutterFlowTheme.of(context).primary,
),
),
),
);
}
List<UsersRecord> listViewUsersRecordList = snapshot.data!;
return ListView.builder(
padding: EdgeInsets.zero,
shrinkWrap: true,
scrollDirection: Axis.vertical,
itemCount: listViewUsersRecordList.length,
itemBuilder: (context, listViewIndex) {
final listViewUsersRecord =
listViewUsersRecordList[listViewIndex];
return Padding(
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 16),
child: InkWell(
splashColor: Colors.transparent,
focusColor: Colors.transparent,
hoverColor: Colors.transparent,
highlightColor: Colors.transparent,
onTap: () async {
context.pushNamed(
'History',
queryParameters: {
'historyUser': serializeParam(
listViewUsersRecord.reference,
ParamType.DocumentReference,
),
}.withoutNulls,
);
},
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
width: 40,
height: 40,
clipBehavior: Clip.antiAlias,
decoration: BoxDecoration(
shape: BoxShape.circle,
),
child: Image.network(
listViewUsersRecord.photoUrl,
fit: BoxFit.cover,
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
8, 0, 0, 0),
child: Text(
listViewUsersRecord.email,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
letterSpacing: 0.0,
),
),
),
],
),
FutureBuilder<int>(
future: queryFormulaHistoryRecordCount(
queryBuilder: (formulaHistoryRecord) =>
formulaHistoryRecord.where(
'user',
isEqualTo: listViewUsersRecord.reference,
),
),
builder: (context, snapshot) {
// Customize what your widget looks like when it's loading.
if (!snapshot.hasData) {
return Center(
child: SizedBox(
width: 50,
height: 50,
child: CircularProgressIndicator(
valueColor:
AlwaysStoppedAnimation<Color>(
FlutterFlowTheme.of(context)
.primary,
),
),
),
);
}
int textCount = snapshot.data!;
return Text(
textCount.toString(),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
letterSpacing: 0.0,
),
);
},
),
],
),
),
);
},
);
},
),
],
),
),
),
),
);
}
}
