You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
import 'package:flutter/material.dart';
|
|
import 'package:flutter_cocos_view_example/screens/no_interaction_screen.dart';
|
|
import 'package:flutter_cocos_view_example/screens/orientation_screen.dart';
|
|
|
|
import 'menu_screen.dart';
|
|
import 'screens/api_screen.dart';
|
|
import 'screens/loader_screen.dart';
|
|
import 'screens/simple_screen.dart';
|
|
|
|
void main() {
|
|
runApp(const MyApp());
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({Key? key}) : super(key: key);
|
|
|
|
// This widget is the root of your application.
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Flutter Cocos Demo',
|
|
theme: ThemeData(
|
|
primarySwatch: Colors.blue,
|
|
visualDensity: VisualDensity.adaptivePlatformDensity,
|
|
),
|
|
initialRoute: '/',
|
|
routes: {
|
|
'/': (context) => const MenuScreen(),
|
|
'/simple': (context) => const SimpleScreen(),
|
|
'/loader': (context) => const LoaderScreen(),
|
|
'/orientation': (context) => const OrientationScreen(),
|
|
'/api': (context) => const ApiScreen(),
|
|
'/none': (context) => const NoInteractionScreen(),
|
|
},
|
|
);
|
|
}
|
|
}
|
|
|