import 'package:flutter/material.dart';
import 'first_page.dart';
import 'second_page.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.dark().copyWith(
primaryColor: Color(0xFF0A0E21),
scaffoldBackgroundColor:Colors.black12,
),
home: First_page(),
routes: {
'/zero': (context)=> First_page(),
'/first':(context)=> Second_page(),
//'/second':(context)=>Screen2(),
},
);
}
}
问问题
34 次