49e626e9
Key
feat: log_util.dart
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:wow_english/common/widgets/we_app_bar.dart';
import 'package:wow_english/pages/user/bloc/user_bloc.dart';
enum ModifyUserInformationType {
avatar('修改头像'), name('修改名字'), age('修改年龄'), gender('修改性别');
const ModifyUserInformationType(this.title);
final String title;
}
class ModifyUserInformationPage extends StatelessWidget {
final ModifyUserInformationType type;
const ModifyUserInformationPage({super.key, required this.type});
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => UserBloc(),
child: Scaffold(
backgroundColor: Colors.white,
appBar: WEAppBar(
titleText: type.title,
),
),
);
}
}
|