From 1318b67be8ed2f85664a231511f0c055479c9b1b Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sun, 10 Mar 2024 17:25:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:riverpod=20=E8=BF=81=E7=A7=BB=20PartyRoomU?= =?UTF-8?q?I?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/index_ui.dart | 3 +++ lib/ui/party_room/party_room_ui.dart | 40 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 lib/ui/party_room/party_room_ui.dart diff --git a/lib/ui/index_ui.dart b/lib/ui/index_ui.dart index 81d9df3..7b9f7c7 100644 --- a/lib/ui/index_ui.dart +++ b/lib/ui/index_ui.dart @@ -6,6 +6,7 @@ import 'package:starcitizen_doctor/common/conf/const_conf.dart'; import 'package:starcitizen_doctor/provider/aria2c.dart'; import 'package:starcitizen_doctor/ui/home/home_ui.dart'; import 'package:starcitizen_doctor/ui/home/home_ui_model.dart'; +import 'package:starcitizen_doctor/ui/party_room/party_room_ui.dart'; import 'package:starcitizen_doctor/widgets/widgets.dart'; import 'package:window_manager/window_manager.dart'; @@ -116,6 +117,8 @@ class IndexUI extends HookConsumerWidget { switch (value) { case 0: return const HomeUI(); + case 1: + return const PartyRoomUI(); default: return Center( child: Text("UnimplPage $value"), diff --git a/lib/ui/party_room/party_room_ui.dart b/lib/ui/party_room/party_room_ui.dart new file mode 100644 index 0000000..2e7cdfd --- /dev/null +++ b/lib/ui/party_room/party_room_ui.dart @@ -0,0 +1,40 @@ +import 'package:flutter/material.dart'; +import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:url_launcher/url_launcher_string.dart'; + +class PartyRoomUI extends HookConsumerWidget { + const PartyRoomUI({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + return Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Text( + "联机大厅,敬请期待 !", + style: TextStyle(fontSize: 20), + ), + const SizedBox(height: 12), + GestureDetector( + onTap: () { + launchUrlString("https://wj.qq.com/s2/14112124/f4c8/"); + }, + child: const Row( + mainAxisSize: MainAxisSize.min, + children: [ + Text("诚邀您参与 "), + Text( + "问卷调查。", + style: TextStyle( + color: Colors.blue, + ), + ) + ], + ), + ), + ], + ), + ); + } +}