Przeglądaj źródła

fix: apply pages topCenter, remove 全部单据, filter spacing 16/8

chengc 5 dni temu
rodzic
commit
53e54d1c18

+ 1 - 1
lib/features/expense/expense_apply_page.dart

@@ -48,7 +48,7 @@ class _ExpenseApplyPageState extends ConsumerState<ExpenseApplyPage> {
       body: Column(
         children: [
           Expanded(
-            child: Center(
+            child: Align(alignment: Alignment.topCenter,
               child: ConstrainedBox(
                 constraints: BoxConstraints(maxWidth: r.formMaxWidth),
                 child: SingleChildScrollView(

+ 1 - 1
lib/features/expense/expense_list_page.dart

@@ -113,7 +113,7 @@ class _ExpenseListPageState extends ConsumerState<ExpenseListPage> {
       ),
     );
     return Padding(
-      padding: const EdgeInsets.symmetric(vertical: 8),
+      padding: const EdgeInsets.only(top: 16, bottom: 8),
       child: r.isWide
           ? Center(
               child: SizedBox(width: r.listMaxWidth, child: filterBar))

+ 1 - 1
lib/features/expense_application/expense_application_apply_page.dart

@@ -42,7 +42,7 @@ class _ExpenseApplicationApplyPageState
       body: Column(
         children: [
           Expanded(
-            child: Center(
+            child: Align(alignment: Alignment.topCenter,
               child: ConstrainedBox(
                 constraints: BoxConstraints(maxWidth: r.formMaxWidth),
                 child: SingleChildScrollView(

+ 1 - 1
lib/features/expense_application/expense_application_list_page.dart

@@ -111,7 +111,7 @@ class _ExpenseApplicationListPageState
       ),
     );
     return Padding(
-      padding: const EdgeInsets.symmetric(vertical: 8),
+      padding: const EdgeInsets.only(top: 16, bottom: 8),
       child: r.isWide
           ? Center(
               child: SizedBox(width: r.listMaxWidth, child: filterBar))

+ 0 - 7
lib/features/home/home_page.dart

@@ -106,13 +106,6 @@ class HomePage extends ConsumerWidget {
                 color: const Color(0xFF722ED1),
                 onTap: () => context.push('/announcement/list'),
               ),
-              _EntryItem(
-                icon: Icons.description,
-                label: '全部单据',
-                badge: '${summary.totalCount}条',
-                color: const Color(0xFFEB2F96),
-                onTap: () {},
-              ),
             ],
           ),
           const SizedBox(height: 12),

+ 1 - 1
lib/features/outing_log/outing_log_create_page.dart

@@ -37,7 +37,7 @@ class _OutingLogCreatePageState extends ConsumerState<OutingLogCreatePage> {
       body: Column(
         children: [
           Expanded(
-            child: Center(
+            child: Align(alignment: Alignment.topCenter,
               child: ConstrainedBox(
                 constraints: BoxConstraints(maxWidth: r.formMaxWidth),
                 child: SingleChildScrollView(

+ 1 - 1
lib/features/overtime/overtime_apply_page.dart

@@ -38,7 +38,7 @@ class _OvertimeApplyPageState extends ConsumerState<OvertimeApplyPage> {
       body: Column(
         children: [
           Expanded(
-            child: Center(
+            child: Align(alignment: Alignment.topCenter,
               child: ConstrainedBox(
                 constraints: BoxConstraints(maxWidth: r.formMaxWidth),
                 child: SingleChildScrollView(

+ 1 - 1
lib/features/overtime/overtime_list_page.dart

@@ -109,7 +109,7 @@ class _OvertimeListPageState extends ConsumerState<OvertimeListPage> {
       ),
     );
     return Padding(
-      padding: const EdgeInsets.symmetric(vertical: 8),
+      padding: const EdgeInsets.only(top: 16, bottom: 8),
       child: r.isWide
           ? Center(
               child: SizedBox(width: r.listMaxWidth, child: filterBar))

+ 1 - 1
lib/features/vehicle/vehicle_apply_page.dart

@@ -29,7 +29,7 @@ class _VehicleApplyPageState extends ConsumerState<VehicleApplyPage> {
       body: Column(
         children: [
           Expanded(
-            child: Center(
+            child: Align(alignment: Alignment.topCenter,
               child: ConstrainedBox(
                 constraints: BoxConstraints(maxWidth: r.formMaxWidth),
                 child: SingleChildScrollView(

+ 1 - 1
lib/features/vehicle/vehicle_list_page.dart

@@ -98,7 +98,7 @@ class _VehicleListPageState extends ConsumerState<VehicleListPage> {
       ),
     );
     return Padding(
-      padding: const EdgeInsets.symmetric(vertical: 8),
+      padding: const EdgeInsets.only(top: 16, bottom: 8),
       child: r.isWide ? Center(child: SizedBox(width: r.listMaxWidth, child: filterBar)) : filterBar,
     );
   }