mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: live: text style
This commit is contained in:
@@ -42,7 +42,7 @@ class DynamicPanel extends StatelessWidget {
|
|||||||
borderRadius: BorderRadius.circular(5),
|
borderRadius: BorderRadius.circular(5),
|
||||||
),
|
),
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: source == 'detail' && item.type == 'DYNAMIC_TYPE_DRAW'
|
onTap: source == 'detail' && item.type != 'DYNAMIC_TYPE_AV'
|
||||||
? null
|
? null
|
||||||
: () => _dynamicsController.pushDetail(item, 1),
|
: () => _dynamicsController.pushDetail(item, 1),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
@@ -355,6 +355,7 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
|||||||
plPlayerController.isOpenDanmu.value
|
plPlayerController.isOpenDanmu.value
|
||||||
? Icons.subtitles_outlined
|
? Icons.subtitles_outlined
|
||||||
: Icons.subtitles_off_outlined,
|
: Icons.subtitles_off_outlined,
|
||||||
|
color: _color,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -363,6 +364,8 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
|||||||
focusNode: _node,
|
focusNode: _node,
|
||||||
controller: _ctr,
|
controller: _ctr,
|
||||||
textInputAction: TextInputAction.send,
|
textInputAction: TextInputAction.send,
|
||||||
|
cursorColor: _color,
|
||||||
|
style: TextStyle(color: _color),
|
||||||
onSubmitted: (value) {
|
onSubmitted: (value) {
|
||||||
if (value.isNotEmpty) {
|
if (value.isNotEmpty) {
|
||||||
_onSendMsg(value);
|
_onSendMsg(value);
|
||||||
@@ -372,7 +375,7 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
|||||||
border: InputBorder.none,
|
border: InputBorder.none,
|
||||||
hintText: '发送弹幕',
|
hintText: '发送弹幕',
|
||||||
hintStyle: TextStyle(
|
hintStyle: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.outline,
|
color: Colors.white.withOpacity(0.6),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -385,7 +388,7 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
|||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.send,
|
Icons.send,
|
||||||
color: Colors.white,
|
color: _color,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -407,6 +410,8 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Color get _color => Color(0xFFEEEEEE);
|
||||||
|
|
||||||
void _onSendMsg(msg) async {
|
void _onSendMsg(msg) async {
|
||||||
if (!_isLogin) {
|
if (!_isLogin) {
|
||||||
SmartDialog.showToast('未登录');
|
SmartDialog.showToast('未登录');
|
||||||
|
|||||||
Reference in New Issue
Block a user