debug: added time dilation slider
This commit is contained in:
parent
95d67f6850
commit
abf7481af5
1 changed files with 11 additions and 0 deletions
|
@ -5,6 +5,7 @@ import 'package:aves/model/settings.dart';
|
||||||
import 'package:aves/utils/android_file_utils.dart';
|
import 'package:aves/utils/android_file_utils.dart';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/scheduler.dart';
|
||||||
|
|
||||||
class DebugPage extends StatefulWidget {
|
class DebugPage extends StatefulWidget {
|
||||||
final List<ImageEntry> entries;
|
final List<ImageEntry> entries;
|
||||||
|
@ -76,6 +77,16 @@ class DebugPageState extends State<DebugPage> {
|
||||||
return Text('DB address rows: ${snapshot.data.length}');
|
return Text('DB address rows: ${snapshot.data.length}');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Divider(),
|
||||||
|
Text('Time dilation'),
|
||||||
|
Slider(
|
||||||
|
value: timeDilation,
|
||||||
|
onChanged: (v) => setState(() => timeDilation = v),
|
||||||
|
min: 1.0,
|
||||||
|
max: 10.0,
|
||||||
|
divisions: 9,
|
||||||
|
label: '$timeDilation',
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue