bullseye/lib/control.dart
Tony Bark 9e475f6a34 Added prompt and control widgets
- Updated iOS portion of project
- Always to default landscape
2021-05-28 04:59:28 -04:00

34 lines
735 B
Dart

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")
],
);
}
}