Static Nav Drawer in landscape
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:tasktracker/Settings/Settings.dart';
|
||||
import 'package:tasktracker/Data.dart';
|
||||
|
||||
@@ -26,8 +27,11 @@ class _BehaviourSettingsState extends State<BehaviourSettings> {
|
||||
});
|
||||
}
|
||||
|
||||
TextEditingController untrackedGapSettings = TextEditingController();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
int untrackedGapValue = int.tryParse(untrackedGapSettings.text) ?? 1;
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: Text('Behaviour Settings')),
|
||||
body: SafeArea(
|
||||
@@ -47,6 +51,45 @@ class _BehaviourSettingsState extends State<BehaviourSettings> {
|
||||
});
|
||||
}),
|
||||
),
|
||||
//TODO
|
||||
ListTile(
|
||||
title:Text("Untracked Delay Threshold"),
|
||||
subtitle: Text("Makes it easier to fill in the gaps"),
|
||||
trailing:
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if(untrackedGapValue> 0)InkWell(onTap: (){
|
||||
untrackedGapSettings.text = (untrackedGapValue-1).toString();
|
||||
setState(() {
|
||||
|
||||
});
|
||||
},
|
||||
child : Container(margin: EdgeInsets.all(10),child: Text('-')),),
|
||||
SizedBox(
|
||||
width: 25,
|
||||
height: 30,
|
||||
child: TextField(
|
||||
textAlign: TextAlign.center,
|
||||
controller: untrackedGapSettings,
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: <TextInputFormatter>[
|
||||
FilteringTextInputFormatter.digitsOnly
|
||||
],),
|
||||
),
|
||||
|
||||
InkWell(onTap: (){
|
||||
untrackedGapSettings.text = (untrackedGapValue+1).toString();
|
||||
setState(() {
|
||||
|
||||
});
|
||||
},
|
||||
child: Container(margin:EdgeInsets.all(10),child: Text('+')),
|
||||
)
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user