|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter_icons/flutter_icons.dart';
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
@ -34,7 +35,6 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
|
pinned: true,
|
|
|
|
|
toolbarHeight: 0,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
stretch: true,
|
|
|
|
|
floating: true,
|
|
|
|
|
expandedHeight: 450.w - height,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
@ -191,10 +191,16 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
double _statusHeight = MediaQuery.of(context).padding.top;
|
|
|
|
|
final double _statusHeight = MediaQuery.of(context).padding.top;
|
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
|
return Scaffold(
|
|
|
|
|
body: CustomScrollView(
|
|
|
|
|
physics: AlwaysScrollableScrollPhysics(parent: BouncingScrollPhysics()),
|
|
|
|
|
body: EasyRefresh(
|
|
|
|
|
header: MaterialHeader(),
|
|
|
|
|
onRefresh: () async {
|
|
|
|
|
await userProvider.updateProfile();
|
|
|
|
|
await userProvider.updateUserDetail();
|
|
|
|
|
},
|
|
|
|
|
child: CustomScrollView(
|
|
|
|
|
slivers: <Widget>[
|
|
|
|
|
_sliverAppBar(_statusHeight),
|
|
|
|
|
// SliverToBoxAdapter(
|
|
|
|
@ -265,6 +271,7 @@ class _PersonalIndexState extends State<PersonalIndex>
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|