4
2
Fork 0

feat: add basic interface options

pull/75/head
shihern 2019-08-20 21:31:44 +08:00
parent db07c8cb43
commit 8119de8afa
1 changed files with 39 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import "package:flutter/material.dart";
import 'package:frontend_flutter/src/ui/widgets/list_text_button.dart';
import "../../widgets/top_bar.dart";
import "../../widgets/list_button.dart";
@ -11,8 +12,15 @@ class InterfaceView extends StatefulWidget {
}
class _InterfaceViewState extends State<InterfaceView> {
bool _enterToSend = false;
@override
Widget build(BuildContext context) {
var _buttonTextTheme = Theme.of(context)
.textTheme
.title
.copyWith(color: Theme.of(context).accentColor);
return Column(
children: <Widget>[
TopBar(
@ -22,7 +30,37 @@ class _InterfaceViewState extends State<InterfaceView> {
Spacer(),
],
),
Text('Interface View'),
Expanded(
child: ListView(
padding: EdgeInsets.only(top: 0.0),
children: <Widget>[
SwitchListTile(
title: Text('Enter to Send', style: _buttonTextTheme),
value: _enterToSend,
onChanged: (bool value) {
setState(() {
_enterToSend = value;
});
},
),
ListTextButton(
text: 'Font Size',
subtitle: 'Medium',
textStyle: _buttonTextTheme,
onClickCallback: () {
},
),
ListTextButton(
text: 'Wallpaper',
textStyle: _buttonTextTheme,
onClickCallback: () {
},
),
],
),
),
],
);
}