Fix stream card overflow, add PiP setting subtitle
This commit is contained in:
parent
35ee48c9f8
commit
fcf2b8105a
2 changed files with 14 additions and 3 deletions
|
|
@ -41,6 +41,8 @@ class StreamCard extends StatelessWidget {
|
|||
useOldImageOnUrlChange: true,
|
||||
);
|
||||
|
||||
final streamerName = regexEnglish.hasMatch(streamInfo.userName) ? streamInfo.userName : streamInfo.userName + ' (${streamInfo.userLogin})';
|
||||
|
||||
return InkWell(
|
||||
onTap: () => Navigator.push(
|
||||
context,
|
||||
|
|
@ -102,9 +104,16 @@ class StreamCard extends StatelessWidget {
|
|||
radius: 10.0,
|
||||
),
|
||||
const SizedBox(width: 5.0),
|
||||
Text(
|
||||
regexEnglish.hasMatch(streamInfo.userName) ? streamInfo.userName : streamInfo.userName + ' (${streamInfo.userLogin})',
|
||||
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
|
||||
Expanded(
|
||||
child: Tooltip(
|
||||
message: streamerName,
|
||||
preferBelow: false,
|
||||
child: Text(
|
||||
streamerName,
|
||||
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -32,7 +32,9 @@ class VideoSettings extends StatelessWidget {
|
|||
),
|
||||
if (Platform.isIOS)
|
||||
SwitchListTile.adaptive(
|
||||
isThreeLine: true,
|
||||
title: const Text('Picture-in-picture button'),
|
||||
subtitle: const Text('Adds a button to enter PiP mode on the bottom right of the overlay.'),
|
||||
value: settingsStore.pictureInPicture,
|
||||
onChanged: settingsStore.showVideo && settingsStore.showOverlay ? (newValue) => settingsStore.pictureInPicture = newValue : null,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue