ソースを参照

notice页面部分

“shanwenxin” 1 週間 前
コミット
7cb5630b0c

+ 68 - 4
packages/cpt_notice_board/lib/modules/notice_board/page/notice_board_page.dart

@@ -1,8 +1,11 @@
+import 'package:cs_resources/theme/theme_config.dart';
 import 'package:flutter/material.dart';
 import 'package:auto_route/auto_route.dart';
 import 'package:hooks_riverpod/hooks_riverpod.dart';
 import 'package:router/ext/auto_router_extensions.dart';
-
+import 'package:widgets/my_load_image.dart';
+import 'package:cs_resources/generated/assets.dart';
+import 'package:widgets/my_appbar.dart';
 import '../../../router/page/notice_board_page_router.dart';
 import '../../notice_board/vm/notice_board_view_model.dart';
 
@@ -24,9 +27,70 @@ class NoticeBoardPage extends HookConsumerWidget {
     final _viewModel = ref.read(noticeBoardViewModelProvider.notifier);
 
     return Scaffold(
-      appBar: AppBar(title: Text("消息板")),
-      body: Center(
-        child: Text("消息板的主页面"),
+      // appBar: MyAppBar.titleBar(context, "Test Title"),
+      body: Container(
+        child: Column(
+          children: [
+
+            MyAppBar.titleBar(context, "Test Title"),
+            const Padding(
+              padding: EdgeInsets.fromLTRB(15, 0, 15, 30),
+              child: Row(
+                mainAxisAlignment: MainAxisAlignment.spaceBetween,
+                children: [
+                  Column(children: [
+                    MyAssetImage(
+                      Assets.noticeBoardAnnouncementIcon,
+                      height: 70,
+                      width: 70,
+                    ),
+                    Text(
+                      "Announcement",
+                      style: TextStyle(
+                        color: Colors.black,
+                        fontSize: 15,
+                        fontWeight: FontWeight.bold,
+                        height: 1.5,
+                      ),
+                    )
+                  ]),
+                  Column(children: [
+                    MyAssetImage(
+                      Assets.noticeBoardEventIcon,
+                      height: 70,
+                      width: 70,
+                    ),
+                    Text(
+                      "Event",
+                      style: TextStyle(
+                        color: Colors.black,
+                        fontSize: 15,
+                        fontWeight: FontWeight.bold,
+                        height: 1.5,
+                      ),
+                    )
+                  ]),
+                  Column(children: [
+                    MyAssetImage(
+                      Assets.noticeBoardDocumentsIcon,
+                      height: 70,
+                      width: 70,
+                    ),
+                    Text(
+                      "Documents",
+                      style: TextStyle(
+                        color: Colors.black,
+                        fontSize: 15,
+                        fontWeight: FontWeight.bold,
+                        height: 1.5,
+                      ),
+                    )
+                  ]),
+                ],
+              ),
+            ),
+          ],
+        ),
       ),
     );
   }

BIN
packages/cs_resources/assets/notice_board/announcement_icon.png


BIN
packages/cs_resources/assets/notice_board/documents_icon.png


BIN
packages/cs_resources/assets/notice_board/event_icon.png


+ 3 - 0
packages/cs_resources/lib/generated/assets.dart

@@ -26,5 +26,8 @@ class Assets {
   static const String baseServiceTitleBarFilterIcon = 'assets/base_service/title_bar_filter_icon.webp';
   static const String baseServiceTriangleDropDown = 'assets/base_service/triangle_drop_down.webp';
   static const String baseServiceTriangleDropDownIcon = 'assets/base_service/triangle_drop_down_icon.webp';
+  static const String noticeBoardAnnouncementIcon = 'assets/notice_board/announcement_icon.png';
+  static const String noticeBoardDocumentsIcon = 'assets/notice_board/documents_icon.png';
+  static const String noticeBoardEventIcon = 'assets/notice_board/event_icon.png';
 
 }

+ 2 - 3
packages/cs_resources/pubspec.yaml

@@ -4,10 +4,9 @@ description: 整体项目的资源,颜色,图片,字体等
 version: 1.0.0
 
 environment:
-  sdk: '>=3.0.2 <4.0.0'
+  sdk: ">=3.0.2 <4.0.0"
 
 dependencies:
-
   flutter_localizations:
     sdk: flutter
 
@@ -27,7 +26,7 @@ flutter:
     - assets/
     - assets/base_lib/
     - assets/base_service/
-
+    - assets/notice_board/
 
 flutter_intl:
   enabled: true