automatic fixes
This commit is contained in:
parent
d33cdfb275
commit
aa67607596
3 changed files with 5 additions and 7 deletions
|
@ -1,12 +1,13 @@
|
|||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:libacflutter/Constants.dart';
|
||||
import 'package:ota_update/ota_update.dart';
|
||||
import 'package:pokedex/Consts.dart';
|
||||
import 'package:pokedex/Session.dart';
|
||||
|
||||
class UpdateCheck extends StatefulWidget {
|
||||
const UpdateCheck({super.key});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
return _UPDCheck();
|
||||
|
|
|
@ -130,7 +130,7 @@ class _main extends State<MainGen> {
|
|||
var pokemon = Pokemon.values[iterNumber];
|
||||
|
||||
if (currentGen != pokemon.generation) {
|
||||
if (total > 0) sb.append("\n- Completed ${completed}/${total}\n");
|
||||
if (total > 0) sb.append("\n- Completed $completed/$total\n");
|
||||
|
||||
sb.append("\n# Generation ${pokemon.generation.name}\n\n");
|
||||
currentGen = pokemon.generation;
|
||||
|
@ -187,7 +187,7 @@ class _main extends State<MainGen> {
|
|||
setState(() {});
|
||||
} else if (state - index == 6) {
|
||||
// Task - write file
|
||||
sb.append("\n- Completed ${completed}/${total}\n");
|
||||
sb.append("\n- Completed $completed/$total\n");
|
||||
|
||||
maxTasks += 3;
|
||||
statusMessage = "Saving to COMPLETED.md";
|
||||
|
@ -203,7 +203,7 @@ class _main extends State<MainGen> {
|
|||
setState(() {});
|
||||
} else if (state - index == 8) {
|
||||
statusMessage = "Updating Latest Version manifest...";
|
||||
await File("LATEST_VERSION").writeAsString("${Constants.VERSION}");
|
||||
await File("LATEST_VERSION").writeAsString(Constants.VERSION);
|
||||
state++;
|
||||
setState(() {});
|
||||
} else if (state - index == 9) {
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
// gestures. You can also use WidgetTester to find child widgets in the widget
|
||||
// tree, read text, and verify that the values of widget properties are correct.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:pokedex/main.dart';
|
||||
|
||||
void main() {
|
||||
/*testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue