modify_user_information_page.dart 849 Bytes
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,
        ),
      ),
    );
  }
}