user page update

hmxc
小赖 4 years ago
parent 1b8adabc54
commit ed9a98b689

@ -1,7 +1,6 @@
import 'package:akuCommunity/pages/tab_navigator.dart'; import 'package:akuCommunity/pages/tab_navigator.dart';
import 'package:akuCommunity/provider/user_provider.dart'; import 'package:akuCommunity/provider/user_provider.dart';
import 'package:akuCommunity/utils/developer_util.dart'; import 'package:akuCommunity/utils/developer_util.dart';
import 'package:akuCommunity/utils/logger_view.dart';
import 'package:amap_map_fluttify/amap_map_fluttify.dart'; import 'package:amap_map_fluttify/amap_map_fluttify.dart';
import 'package:ani_route/ani_route.dart'; import 'package:ani_route/ani_route.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';

@ -9,6 +9,7 @@ import 'package:akuCommunity/pages/setting_page/settings_page.dart';
import 'package:akuCommunity/pages/sign/sign_in_page.dart'; import 'package:akuCommunity/pages/sign/sign_in_page.dart';
import 'package:akuCommunity/pages/things_page/fixed_submit_page.dart'; import 'package:akuCommunity/pages/things_page/fixed_submit_page.dart';
import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart'; import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart';
import 'package:akuCommunity/painters/user_bottom_bar_painter.dart';
import 'package:akuCommunity/provider/user_provider.dart'; import 'package:akuCommunity/provider/user_provider.dart';
import 'package:akuCommunity/utils/net_util.dart'; import 'package:akuCommunity/utils/net_util.dart';
import 'package:akuCommunity/widget/grid_buttons.dart'; import 'package:akuCommunity/widget/grid_buttons.dart';
@ -118,7 +119,7 @@ class _PersonalIndexState extends State<PersonalIndex>
children: [ children: [
Spacer(), Spacer(),
Container( Container(
margin: EdgeInsets.only(top: 175.w, left: 32.w), margin: EdgeInsets.only(left: 32.w),
child: Row( child: Row(
children: [ children: [
Container( Container(
@ -158,20 +159,37 @@ class _PersonalIndexState extends State<PersonalIndex>
], ],
), ),
), ),
Stack(
children: [
Positioned(
bottom: 0,
left: 0,
right: 0,
child: Container(
height: 41.w,
width: double.infinity,
child: CustomPaint(
painter: UserBottomBarPainter(),
),
),
),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: 38.w, top: 38.w,
left: 36.w, left: 36.w,
right: 36.w, right: 36.w,
bottom: 18.w,
), ),
child: Image.asset( child: Image.asset(
'assets/images/member_bg.png', R.ASSETS_IMAGES_MEMBER_BG_PNG,
width: 678.w, width: 678.w,
height: 129.w, height: 129.w,
), ),
), ),
], ],
), ),
],
),
), ),
) )
], ],

@ -12,13 +12,11 @@ import 'package:akuCommunity/pages/opening_code_page/opening_code_page.dart';
import 'package:akuCommunity/pages/questionnaire_page/questionnaire_page.dart'; import 'package:akuCommunity/pages/questionnaire_page/questionnaire_page.dart';
import 'package:akuCommunity/pages/things_page/things_page.dart'; import 'package:akuCommunity/pages/things_page/things_page.dart';
import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart'; import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart';
import 'package:ani_route/ani_route.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/base/assets_image.dart'; import 'package:akuCommunity/base/assets_image.dart';
import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/routers/page_routers.dart';
import 'package:get/get.dart';
import 'widget/applications_bar.dart'; import 'widget/applications_bar.dart';
class TotalApplicationsPage extends StatefulWidget { class TotalApplicationsPage extends StatefulWidget {

@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class UserBottomBarPainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
Paint paint = Paint()..color = Color(0xFFE9E9E9);
Path path = Path();
path.moveTo(26.w, 0);
path.lineTo(size.width - 26.w, 0);
path.lineTo(size.width + 16.w, size.height);
path.lineTo(-16.w, size.height);
path.close();
canvas.drawPath(path, paint);
Paint secondPaint = Paint()..color = Color(0xFF767676);
Path secondPath = Path();
secondPath.moveTo(30.w, 13.w);
secondPath.lineTo(size.width - 30.w, 13.w);
secondPath.lineTo(size.width - 24.w, 23.w);
secondPath.lineTo(24.w, 23.w);
secondPath.close();
canvas.drawPath(secondPath, secondPaint);
}
@override
bool shouldRepaint(UserBottomBarPainter oldDelegate) => false;
@override
bool shouldRebuildSemantics(UserBottomBarPainter oldDelegate) => false;
}
Loading…
Cancel
Save