调整尺寸

This commit is contained in:
2025-11-18 15:50:58 +08:00
parent fb212fa386
commit 959fe89bed
4 changed files with 14 additions and 12 deletions

View File

@@ -76,7 +76,8 @@ class _LoginPageState extends State<LoginPage> with SingleTickerProviderStateMix
children: [
Card(
elevation: 2,
child: Padding(
child: Container(
height: 55.h,
padding: EdgeInsets.all(3),
child: TabBar(
controller: tabController,
@@ -142,9 +143,12 @@ class _LoginPageState extends State<LoginPage> with SingleTickerProviderStateMix
controller: controller.driverIdentityController,
cursorColor: AppTheme.themeColor,
maxLength: 8,
style: TextStyle(fontSize: 14),
decoration: InputDecoration(
hintText: '请输入身份后8位',
border: OutlineInputBorder(),
hintStyle: TextStyle(fontSize: 14),
contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: 10),
prefixIcon: Icon(Icons.person_2_outlined, color: Colors.grey),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: AppTheme.themeColor),
@@ -237,9 +241,12 @@ class _LoginPageState extends State<LoginPage> with SingleTickerProviderStateMix
TextFormField(
controller: controller.stationIdController,
cursorColor: AppTheme.themeColor,
style: TextStyle(fontSize: 14),
decoration: InputDecoration(
hintText: '请输入加氢站编号',
border: OutlineInputBorder(),
hintStyle: TextStyle(fontSize: 14),
contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: 10),
prefixIcon: Icon(Icons.person_2_outlined, color: Colors.grey),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: AppTheme.themeColor),
@@ -250,8 +257,11 @@ class _LoginPageState extends State<LoginPage> with SingleTickerProviderStateMix
TextFormField(
controller: controller.passwordController,
obscureText: _obscureText,
style: TextStyle(fontSize: 14),
cursorColor: AppTheme.themeColor,
decoration: InputDecoration(
hintStyle: TextStyle(fontSize: 14),
contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: 10),
hintText: '请输入密码',
border: OutlineInputBorder(),
suffixIcon: IconButton(