main.dart

import 'package:flutter/material.dart';
import 'package:flysnow_2ull/index/index.dart';         // 导入index.dart
import 'package:flysnow_2ull/index/Splash_Page.dart';

// 这里为入口函数
void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'flysnow',
      home: new Index(),     // 指定去加载 Index页面。
    );
  }
}

  

转载于:https://www.cnblogs.com/xiongwei/p/10401850.html

你可能感兴趣的:(main.dart)