mirror of
https://github.com/tonytins/bullseye.git
synced 2025-06-26 02:44:42 -04:00
Use platform-aware UI library for native look and feel
- Added score layout
This commit is contained in:
parent
9e475f6a34
commit
9c707d1e47
5 changed files with 41 additions and 12 deletions
|
@ -1,4 +1,5 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
|
||||
|
||||
class Control extends StatefulWidget {
|
||||
Control({Key? key}) : super(key: key);
|
||||
|
@ -15,8 +16,8 @@ class _ControlState extends State<Control> {
|
|||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text("1"),
|
||||
Slider(
|
||||
PlatformText("1"),
|
||||
PlatformSlider(
|
||||
value: _currentValue,
|
||||
onChanged: (newValue) {
|
||||
setState(() {
|
||||
|
@ -27,7 +28,7 @@ class _ControlState extends State<Control> {
|
|||
min: 1.0,
|
||||
max: 100.0,
|
||||
),
|
||||
Text("100")
|
||||
PlatformText("100")
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue