2 次代碼提交 923c8f5842 ... b342a2e65d

作者 SHA1 備註 提交日期
  “shanwenxin” b342a2e65d Merge branch 'dev' of http://git.wmzhubo.com/guadoutech/YYHome into dev 2 周之前
  “shanwenxin” 7cb5630b0c notice页面部分 2 周之前

+ 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,
+                      ),
+                    )
+                  ]),
+                ],
+              ),
+            ),
+          ],
+        ),
       ),
     );
   }

二進制
packages/cs_resources/assets/notice_board/announcement_icon.png


二進制
packages/cs_resources/assets/notice_board/documents_icon.png


二進制
packages/cs_resources/assets/notice_board/event_icon.png


+ 2 - 2
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,6 +26,7 @@ flutter:
     - assets/
     - assets/base_lib/
     - assets/base_service/
+    - assets/notice_board/
     - assets/property/
     - assets/auth/
     - assets/community/