opt dark theme in gesture_help.dart
This commit is contained in:
parent
3ffab643c5
commit
244cfa25f1
@ -2,8 +2,6 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter_hbb/common.dart';
|
import 'package:flutter_hbb/common.dart';
|
||||||
import 'package:toggle_switch/toggle_switch.dart';
|
import 'package:toggle_switch/toggle_switch.dart';
|
||||||
|
|
||||||
import '../../models/model.dart';
|
|
||||||
|
|
||||||
class GestureIcons {
|
class GestureIcons {
|
||||||
static const String _family = 'gestureicons';
|
static const String _family = 'gestureicons';
|
||||||
|
|
||||||
@ -79,7 +77,10 @@ class _GestureHelpState extends State<GestureHelp> {
|
|||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
ToggleSwitch(
|
ToggleSwitch(
|
||||||
initialLabelIndex: _selectedIndex,
|
initialLabelIndex: _selectedIndex,
|
||||||
inactiveBgColor: MyTheme.darkGray,
|
activeFgColor: Colors.white,
|
||||||
|
inactiveFgColor: Colors.white60,
|
||||||
|
activeBgColor: [MyTheme.accent],
|
||||||
|
inactiveBgColor: Theme.of(context).hintColor,
|
||||||
totalSwitches: 2,
|
totalSwitches: 2,
|
||||||
minWidth: 150,
|
minWidth: 150,
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
@ -188,7 +189,7 @@ class GestureInfo extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
width: this.width,
|
width: width,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
@ -199,11 +200,14 @@ class GestureInfo extends StatelessWidget {
|
|||||||
SizedBox(height: 6),
|
SizedBox(height: 6),
|
||||||
Text(fromText,
|
Text(fromText,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(fontSize: 9, color: Colors.grey)),
|
style:
|
||||||
|
TextStyle(fontSize: 9, color: Theme.of(context).hintColor)),
|
||||||
SizedBox(height: 3),
|
SizedBox(height: 3),
|
||||||
Text(toText,
|
Text(toText,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(fontSize: 12, color: Colors.black))
|
style: TextStyle(
|
||||||
|
fontSize: 12,
|
||||||
|
color: Theme.of(context).textTheme.bodySmall?.color))
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user