Files
Lukas Klingsbo 9f54a698d2 chore: Fix Flutter 3.29.0 analyzer issues (#3492)
Fixes the analyze issues that the new flutter version triggered on.
2025-02-13 10:40:14 +00:00

27 lines
651 B
Dart

import 'package:flutter/widgets.dart';
import 'package:web/web.dart' as web;
import 'step2/main.dart' as step2;
import 'step3/main.dart' as step3;
import 'step4/main.dart' as step4;
import 'step5/main.dart' as step5;
void main() {
var page = web.window.location.search;
if (page.startsWith('?')) {
page = page.substring(1);
}
return switch (page) {
'step2' => step2.main(),
'step3' => step3.main(),
'step4' => step4.main(),
'step5' => step5.main(),
_ => runApp(
Directionality(
textDirection: TextDirection.ltr,
child: Text('Error=> unknown page name "$page"'),
),
),
};
}