-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from xiaoyaocz/dev
Release 1.4.5
- Loading branch information
Showing
13 changed files
with
242 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"version": "1.4.4", | ||
"version_num": 10404, | ||
"version_desc": "- 优化聊天区使用体验 #52 #130 #139\n- 修复虎牙部分直播间观看一段时间后自动断开 #185\n- SC仅在哔哩哔哩平台显示\n- 修复全屏进入未直播的直播间无法返回问题 #205\n- 增加小窗时是否关闭弹幕选项\n- 房间内关注列表只显示开播房间 #183(#208 @AprDeci)\n- 添加自动关闭延迟弹窗 (#208 @AprDeci)\n- 哔哩哔哩支持登录账号,解决#209,#150\n\n桌面平台:\n- 鼠标侧键优先退出全屏 \n- esc退出全屏播放(#197 @AprDeci)\n- 添加桌面端鼠标滑动操控(#197 @AprDeci)\n- 支持音量调节 #147(#204 @AprDeci)\n- 桌面支持小窗(#204 @AprDeci)", | ||
"version": "1.4.5", | ||
"version_num": 10405, | ||
"version_desc": "- 修复虎牙无法观看问题 #220\n- 修复手势提示不消失问题 #223\n- 刷新直播间不清空消息列表 #225\n- 增加动态取色/主题色选择(#213 @AprDeci)\n\n桌面平台:\n- 增加加载更多按钮 #228", | ||
"prerelease":false, | ||
"download_url": "https://github.com/xiaoyaocz/dart_simple_live/releases" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 166 additions & 0 deletions
166
simple_live_app/lib/modules/user/appstyle_setting_page.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:get/get.dart'; | ||
import 'package:remixicon/remixicon.dart'; | ||
import 'package:simple_live_app/app/app_style.dart'; | ||
import 'package:simple_live_app/app/controller/app_settings_controller.dart'; | ||
|
||
class AppstyleSettingPage extends GetView<AppSettingsController> { | ||
const AppstyleSettingPage({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text("主题设置"), | ||
), | ||
body: ListView( | ||
padding: AppStyle.edgeInsetsV12, | ||
children: [ | ||
ListTile( | ||
leading: Icon(Get.isDarkMode ? Remix.moon_line : Remix.sun_line), | ||
title: const Padding( | ||
padding: AppStyle.edgeInsetsL8, | ||
child: Text("显示主题"), | ||
), | ||
trailing: const Icon( | ||
Icons.chevron_right, | ||
color: Colors.grey, | ||
), | ||
contentPadding: AppStyle.edgeInsetsH24, | ||
onTap: Get.find<AppSettingsController>().changeTheme, | ||
), | ||
Obx( | ||
() => RadioListTile( | ||
value: true, | ||
groupValue: controller.isDynamic.value, | ||
onChanged: (e) { | ||
controller.setIsDynamic(e ?? true); | ||
Get.forceAppUpdate(); | ||
}, | ||
title: const Text("动态取色"), | ||
), | ||
), | ||
Obx( | ||
() { | ||
return RadioListTile( | ||
value: false, | ||
groupValue: controller.isDynamic.value, | ||
onChanged: (e) { | ||
controller.setIsDynamic(e ?? false); | ||
Get.forceAppUpdate(); | ||
}, | ||
title: const Text("选定颜色"), | ||
); | ||
}, | ||
), | ||
Divider( | ||
indent: 12, | ||
endIndent: 12, | ||
color: Colors.grey.withOpacity(.1), | ||
), | ||
Obx( | ||
() => AnimatedOpacity( | ||
opacity: controller.isDynamic.value ? 0 : 1, | ||
duration: 0.5.seconds, | ||
child: const SizedBox( | ||
width: double.infinity, | ||
child: Column( | ||
children: [ | ||
Row( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
ColorBox( | ||
color: Color(0xffEF5350), | ||
name: '红色', | ||
), | ||
ColorBox( | ||
color: Color(0xff3498db), | ||
name: '蓝色', | ||
), | ||
ColorBox( | ||
color: Color(0xffF06292), | ||
name: '粉色', | ||
), | ||
ColorBox( | ||
color: Color(0xff9575CD), | ||
name: '紫色', | ||
), | ||
], | ||
), | ||
Row( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
ColorBox( | ||
color: Color(0xff26C6DA), | ||
name: '青色', | ||
), | ||
ColorBox( | ||
color: Color(0xff26A69A), | ||
name: '绿色', | ||
), | ||
ColorBox( | ||
color: Color(0xffFFF176), | ||
name: '黄色', | ||
), | ||
ColorBox( | ||
color: Color(0xffFF9800), | ||
name: '橙色', | ||
), | ||
], | ||
) | ||
], | ||
), | ||
), | ||
), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} | ||
|
||
class ColorBox extends GetView<AppSettingsController> { | ||
final Color color; | ||
final String name; | ||
|
||
const ColorBox({super.key, required this.color, required this.name}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return GestureDetector( | ||
onTap: () { | ||
controller.setStyleColor(color.value); | ||
Get.forceAppUpdate(); | ||
}, | ||
child: Column( | ||
children: [ | ||
Obx( | ||
() => Container( | ||
width: 70.0, | ||
height: 40.0, | ||
margin: const EdgeInsets.only( | ||
left: 7.0, right: 7.0, top: 7.0, bottom: 2.0), | ||
decoration: BoxDecoration( | ||
color: color, borderRadius: BorderRadius.circular(4.0)), | ||
child: AnimatedOpacity( | ||
opacity: controller.styleColor.value == color.value ? 1 : 0, | ||
duration: 0.4.seconds, | ||
child: Container( | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(4.0), | ||
border: Border.all(color: Colors.black, width: 1), | ||
), | ||
child: const Icon( | ||
Icons.check, | ||
color: Colors.white, | ||
), | ||
), | ||
), | ||
), | ||
), | ||
Text(name) | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.