minor fix

This commit is contained in:
Thibault Deckers 2021-06-23 12:00:38 +09:00
parent 44be2de223
commit e8050a78df
2 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,9 @@ class Themes {
static final darkTheme = ThemeData( static final darkTheme = ThemeData(
brightness: Brightness.dark, brightness: Brightness.dark,
accentColor: _accentColor, accentColor: _accentColor,
// canvas color is used as background for the drawer and popups
// when using a popup menu on a dialog, lighten the background via `PopupMenuTheme`
canvasColor: Colors.grey[850],
scaffoldBackgroundColor: Colors.grey.shade900, scaffoldBackgroundColor: Colors.grey.shade900,
dialogBackgroundColor: Colors.grey[850], dialogBackgroundColor: Colors.grey[850],
toggleableActiveColor: _accentColor, toggleableActiveColor: _accentColor,

View file

@ -167,6 +167,10 @@ class _VideoStreamSelectionDialogState extends State<VideoStreamSelectionDialog>
value: current, value: current,
onChanged: streams.length > 1 ? (newValue) => setState(() => setter(newValue)) : null, onChanged: streams.length > 1 ? (newValue) => setState(() => setter(newValue)) : null,
isExpanded: true, isExpanded: true,
// use a different shade to avoid having the same background
// on the dialog (using the theme `dialogBackgroundColor`)
// and on the dropdown (using the theme `canvasColor`)
dropdownColor: Colors.grey.shade800,
), ),
), ),
]; ];