mirror of
https://github.com/tonytins/bullseye.git
synced 2025-06-26 02:44:42 -04:00
Added prompt and control widgets
- Updated iOS portion of project - Always to default landscape
This commit is contained in:
parent
90dafce466
commit
9e475f6a34
20 changed files with 328 additions and 7 deletions
34
lib/control.dart
Normal file
34
lib/control.dart
Normal 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")
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue