Merge branch 'master' of http://test.akuhotel.com:8099/zhangmeng/aku_community_manager
# Conflicts: # lib/style/app_style.darthmxc
commit
6f02b7d4fe
@ -0,0 +1,134 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:aku_community_manager/style/app_style.dart';
|
||||
import 'package:aku_community_manager/tools/widget_tool.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_back_button.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
||||
import 'package:aku_ui/common_widgets/aku_material_button.dart';
|
||||
import 'package:extended_text/extended_text.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:aku_community_manager/tools/screen_tool.dart';
|
||||
|
||||
class LoginPage extends StatefulWidget {
|
||||
LoginPage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_LoginPageState createState() => _LoginPageState();
|
||||
}
|
||||
|
||||
class _LoginPageState extends State<LoginPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AkuScaffold(
|
||||
backgroundColor: Colors.white,
|
||||
leading: AkuBackButton.close(),
|
||||
body: ListView(
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: 40.w,
|
||||
bottom: 184.w,
|
||||
left: 32.w,
|
||||
),
|
||||
child: Text(
|
||||
'欢迎登录小蜜蜂',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: 48.sp,
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 32.w),
|
||||
child: Text(
|
||||
'手机号码',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 24.sp,
|
||||
),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 32.w),
|
||||
width: double.infinity,
|
||||
child: TextField(
|
||||
autofocus: true,
|
||||
keyboardType: TextInputType.phone,
|
||||
decoration: InputDecoration(
|
||||
border: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xFFE8E8E8),
|
||||
width: 1.w,
|
||||
),
|
||||
),
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color: Color(0xFFE8E8E8),
|
||||
width: 2.w,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
AkuBox.h(80),
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 32.w),
|
||||
child: AkuMaterialButton(
|
||||
color: AppStyle.minorColor,
|
||||
onPressed: () {},
|
||||
radius: 8.w,
|
||||
child: Text('获取验证码'),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
bottom: Container(
|
||||
height: 110.w,
|
||||
alignment: Alignment.center,
|
||||
padding: EdgeInsets.symmetric(vertical: 40.w),
|
||||
child: ExtendedText.rich(
|
||||
TextSpan(
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor,
|
||||
fontSize: 22.sp,
|
||||
),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: '登录即代表您已同意我们的',
|
||||
),
|
||||
ExtendedWidgetSpan(
|
||||
child: GestureDetector(
|
||||
child: Text(
|
||||
'《服务协议》',
|
||||
style: TextStyle(
|
||||
color: AppStyle.secondaryColor,
|
||||
fontSize: 22.sp,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: '和',
|
||||
),
|
||||
ExtendedWidgetSpan(
|
||||
child: GestureDetector(
|
||||
child: Text(
|
||||
'《隐私政策》',
|
||||
style: TextStyle(
|
||||
color: AppStyle.secondaryColor,
|
||||
fontSize: 22.sp,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: '',
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
import 'package:aku_community_manager/style/app_style.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
||||
import 'package:aku_ui/common_widgets/aku_material_button.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:aku_community_manager/tools/screen_tool.dart';
|
||||
|
||||
class SettingFeedBackPage extends StatefulWidget {
|
||||
SettingFeedBackPage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_SettingFeedBackPageState createState() => _SettingFeedBackPageState();
|
||||
}
|
||||
|
||||
class _SettingFeedBackPageState extends State<SettingFeedBackPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AkuScaffold(
|
||||
title: '意见反馈',
|
||||
backgroundColor: Colors.white,
|
||||
body: ListView(
|
||||
children: [
|
||||
Container(
|
||||
height: 20.w,
|
||||
color: AppStyle.backgroundColor,
|
||||
),
|
||||
Container(
|
||||
margin: EdgeInsets.symmetric(
|
||||
vertical: 24.w,
|
||||
horizontal: 32.w,
|
||||
),
|
||||
padding: EdgeInsets.all(24.w),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
TextField(
|
||||
minLines: 5,
|
||||
maxLines: 99,
|
||||
decoration: InputDecoration(
|
||||
border: InputBorder.none,
|
||||
contentPadding: EdgeInsets.zero,
|
||||
hintText: '请输入你的意见和建议',
|
||||
hintStyle: TextStyle(
|
||||
color: Color(0xFF999999),
|
||||
fontSize: 28.sp,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: AppStyle.backgroundColor,
|
||||
borderRadius: BorderRadius.circular(16.w),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
bottom: AkuMaterialButton(
|
||||
onPressed: () {},
|
||||
child: Text('提交'),
|
||||
color: AppStyle.minorColor,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_tile.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:aku_community_manager/tools/screen_tool.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class UserInfoPage extends StatefulWidget {
|
||||
UserInfoPage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_UserInfoPageState createState() => _UserInfoPageState();
|
||||
}
|
||||
|
||||
class _UserInfoPageState extends State<UserInfoPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AkuScaffold(
|
||||
title: '个人信息',
|
||||
body: ListView(
|
||||
padding: EdgeInsets.symmetric(vertical: 24.w),
|
||||
children: [
|
||||
AkuTile(
|
||||
onTap: () {},
|
||||
title: Text('头像'),
|
||||
height: 168.w,
|
||||
suffix: CircleAvatar(radius: 60.w),
|
||||
),
|
||||
AkuTile(
|
||||
onTap: () {},
|
||||
title: Text('昵称'),
|
||||
),
|
||||
AkuTile(
|
||||
onTap: () {},
|
||||
title: Text('手机'),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
import 'package:aku_ui/common_widgets/aku_material_button.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:aku_community_manager/tools/screen_tool.dart';
|
||||
|
||||
class AkuTile extends StatefulWidget {
|
||||
final Widget prefix;
|
||||
final Widget suffix;
|
||||
final Widget title;
|
||||
final bool arrow;
|
||||
final Color color;
|
||||
final double height;
|
||||
|
||||
final VoidCallback onTap;
|
||||
AkuTile({
|
||||
Key key,
|
||||
this.prefix,
|
||||
this.suffix,
|
||||
this.title,
|
||||
this.arrow = true,
|
||||
this.onTap,
|
||||
this.color = Colors.white,
|
||||
this.height,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
_AkuTileState createState() => _AkuTileState();
|
||||
}
|
||||
|
||||
class _AkuTileState extends State<AkuTile> {
|
||||
double get height => widget.height ?? 96.w;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
height: height,
|
||||
child: Material(
|
||||
color: widget.color,
|
||||
child: InkWell(
|
||||
onTap: widget.onTap,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 32.w),
|
||||
child: Row(
|
||||
children: [
|
||||
widget.prefix ?? SizedBox(),
|
||||
DefaultTextStyle(
|
||||
style: TextStyle(
|
||||
color: Color(0xFF333333),
|
||||
fontSize: 28.sp,
|
||||
),
|
||||
child: widget.title,
|
||||
),
|
||||
Spacer(),
|
||||
widget.suffix ?? SizedBox(),
|
||||
widget.suffix != null && widget.arrow
|
||||
? SizedBox(width: 24.w)
|
||||
: SizedBox(),
|
||||
widget.arrow
|
||||
? Icon(
|
||||
Icons.arrow_forward_ios,
|
||||
size: 24.w,
|
||||
color: Color(0xFF999999),
|
||||
)
|
||||
: SizedBox(),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue