Added prompt and control widgets

- Updated iOS portion of project
- Always to default landscape
This commit is contained in:
Tony Bark 2021-05-28 04:59:28 -04:00
parent 90dafce466
commit 9e475f6a34
20 changed files with 328 additions and 7 deletions

34
lib/control.dart Normal file
View file

@ -0,0 +1,34 @@
import 'package:flutter/material.dart';
class Control extends StatefulWidget {
Control({Key? key}) : super(key: key);
@override
State<StatefulWidget> createState() => _ControlState();
}
class _ControlState extends State<Control> {
double _currentValue = 50.0;
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text("1"),
Slider(
value: _currentValue,
onChanged: (newValue) {
setState(() {
_currentValue = newValue;
print(_currentValue);
});
},
min: 1.0,
max: 100.0,
),
Text("100")
],
);
}
}