Blame view

lib/pages/user/user_page.dart 623 Bytes
22b7d4da   Key   feat: user, api path
1
  import 'package:flutter/material.dart';
089ccd5c   Key   fixed: user util ...
2
3
  import 'package:flutter_bloc/flutter_bloc.dart';
  import 'package:wow_english/common/blocs/cachebloc/cache_bloc.dart';
4b358e22   liangchengyou   feat:调整文件结构
4
  import 'package:wow_english/common/widgets/we_app_bar.dart';
089ccd5c   Key   fixed: user util ...
5
  import 'package:wow_english/models/user_entity.dart';
22b7d4da   Key   feat: user, api path
6
7
8
9
10
11
  
  class UserPage extends StatelessWidget {
    const UserPage({super.key});
  
    @override
    Widget build(BuildContext context) {
089ccd5c   Key   fixed: user util ...
12
13
      UserEntity? user = context.read<CacheBloc>().userEntity;
      return Scaffold(
22b7d4da   Key   feat: user, api path
14
15
        backgroundColor: Colors.white,
        appBar: WEAppBar(
089ccd5c   Key   fixed: user util ...
16
          titleText: user?.name ?? '????',
22b7d4da   Key   feat: user, api path
17
18
19
20
21
        ),
        body: Row(),
      );
    }
  }