mcy_new #1

Merged
wangyang merged 179 commits from mcy_new into master 2025-08-28 10:10:45 +08:00
6 changed files with 63 additions and 38 deletions
Showing only changes of commit bb2d3e4740 - Show all commits

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

View File

@ -78,7 +78,7 @@ class _HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin
),
),
),*/
SizedBox(height: MediaQuery.of(context).padding.top / 2),
SizedBox(height: MediaQuery. of(context).padding.top / 2),
Obx(() {
return $TermRow([
EntranceModel(title: '作业批阅', image: 'assets/images/job_home_marking.png', navigationUrl: Routes.readOverPage),

View File

@ -94,45 +94,48 @@ class _LoginPageState extends State<LoginPage> {
),*/
child: Column(children: [
Container(
padding: EdgeInsets.symmetric(horizontal: 20.r),
padding: EdgeInsets.symmetric(horizontal: 20.h),
decoration: BoxDecoration(
color: Colors.transparent,
border: Border.all(width: 1.w, color: const Color(0xFFFFFFFF)),
borderRadius: BorderRadius.all(Radius.circular(17.w)),
),
child: Center(
child: TextField(
controller: state.userNameController,
/* maxLines: 1,
maxLength: 20,*/
textInputAction: TextInputAction.next,
onEditingComplete: () {
Get.focusScope?.nextFocus();
// FocusScope.of(context).requestFocus(_pwdFocus);
},
style: TextStyle(
color: Colors.white,
child: TextField(
controller: state.userNameController,
/* maxLines: 1,
maxLength: 20,*/
textInputAction: TextInputAction.next,
onEditingComplete: () {
Get.focusScope?.nextFocus();
// FocusScope.of(context).requestFocus(_pwdFocus);
},
style: TextStyle(
color: Colors.white,
fontSize: 14.sp,
),
decoration: InputDecoration(
hintText: "请输入账号",
hintStyle: TextStyle(
fontSize: 14.sp,
color: Colors.white,
),
decoration: InputDecoration(
hintText: "请输入账号",
hintStyle: TextStyle(
fontSize: 14.sp,
color: Colors.white,
),
// labelText: "账号",
labelStyle: TextStyle(
fontSize: 14.sp,
color: Colors.white,
),
border: InputBorder.none,
prefix: Padding(
padding: EdgeInsets.only(right: 5.r),
child: Image.asset(
'assets/images/login_account.png',
width: 15.r,
height: 15.r,
),
// labelText: "账号",
labelStyle: TextStyle(
fontSize: 14.sp,
color: Colors.white,
),
border: InputBorder.none,
isDense: true,
prefixIconConstraints: BoxConstraints(
minHeight:10.w,
minWidth: 10.h,
),
prefixIcon: Padding(
padding: EdgeInsets.only(right: 5.r),
child: Image.asset(
'assets/images/login_account.png',
width: 15.r,
height: 15.r,
),
),
),
@ -143,7 +146,7 @@ class _LoginPageState extends State<LoginPage> {
),
Obx(() {
return Container(
padding: EdgeInsets.symmetric(horizontal: 20.r),
padding: EdgeInsets.symmetric(horizontal: 20.h),
decoration: BoxDecoration(
color: Colors.transparent,
border: Border.all(width: 1.w, color: const Color(0xFFFFFFFF)),
@ -156,7 +159,7 @@ class _LoginPageState extends State<LoginPage> {
maxLines: 1,
obscureText: state.isShowPwd.value,
//
textInputAction: TextInputAction.go,
// textInputAction: state.isShowPwd.value?TextInputAction.go:TextInputAction.next,
// onSubmitted: (val) => toLogin(),
style: TextStyle(
color: Colors.white,
@ -164,7 +167,11 @@ class _LoginPageState extends State<LoginPage> {
),
decoration: InputDecoration(
hintText: "请输入密码",
prefix: Padding(
prefixIconConstraints: BoxConstraints(
minHeight:10.w,
minWidth: 10.h,
),
prefixIcon: Padding(
padding: EdgeInsets.only(right: 5.r),
child: Image.asset(
'assets/images/login_pwd.png',
@ -172,6 +179,23 @@ class _LoginPageState extends State<LoginPage> {
height: 15.r,
),
),
suffixIconConstraints: BoxConstraints(
minHeight:10.w,
minWidth: 10.h,
),
suffixIcon: InkWell(
onTap: (){
state.isShowPwd.value = !state.isShowPwd.value;
},
child: Padding(
padding: EdgeInsets.only(right: 5.r),
child: Image.asset(
state.isShowPwd.value ? 'assets/images/eye_default.png':'assets/images/eye_active.png',
width: 15.r,
height: 15.r,
),
),
),
hintStyle: TextStyle(
fontSize: 14.sp,
color: Colors.white,
@ -203,7 +227,7 @@ class _LoginPageState extends State<LoginPage> {
checkColor: Colors.white,
value: state.keepPwd.value,
onChanged: (value) {
Get.focusScope?.nextFocus();
// Get.focusScope?.nextFocus();
FocusScope.of(context).requestFocus(
state.pwdFocus);
FocusScope.of(context).requestFocus(

View File

@ -26,7 +26,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
// Win32Window::Size size(1280, 720);
Win32Window::Size size(700, 900);
if (!window.Create(L"making_school_asignment_app", origin, size)) {
return EXIT_FAILURE;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB