Code Explained - The Landing Page :
import 'package:flutter/material.dart';
import './quiz_page.dart';
import './list.dart';
import './homepage.dart';
import './testslist.dart';
import './allmissedquestions.dart';
import '../Terms/terms1.dart';
import 'page.dart';
class LandingPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Material(
color: Colors.orangeAccent,
child: new InkWell(
// onTap: () => Navigator.of(context).push(new MaterialPageRoute(builder: (BuildContext context) => new QuizPage())),
//onTap: () => Navigator.of(context).push(new MaterialPageRoute(builder: (BuildContext context) => new MyHomePage())),
// onTap: () => Navigator.of(context).pushAndRemoveUntil(new MaterialPageRoute(builder: (BuildContext context) => new TestsList()), (Route route) => route == null),
onTap: () => Navigator.of(context).pushAndRemoveUntil(new MaterialPageRoute(builder: (BuildContext context) => new Page()), (Route route) => route == null),
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text("AP GO POW", style: new TextStyle(color: Colors.white, fontSize: 50.0, fontWeight: FontWeight.bold),),
new Text("Tap to start!", style: new TextStyle(color: Colors.white, fontSize: 20.0, fontWeight: FontWeight.bold),),
new Text(""),
Image.network(
'https://www.askthecat.org/uploads/6/2/4/4/62443641/65-ask-the-cat_13.png',
),
],
),
),
);
}
}
Code Explained - The Landing Page :
import 'package:flutter/material.dart';
import './quiz_page.dart';
import './list.dart';
import './homepage.dart';
import './testslist.dart';
import './allmissedquestions.dart';
import '../Terms/terms1.dart';
import 'page.dart';
class LandingPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Material(
color: Colors.orangeAccent,
child: new InkWell(
// onTap: () => Navigator.of(context).push(new MaterialPageRoute(builder: (BuildContext context) => new QuizPage())),
//onTap: () => Navigator.of(context).push(new MaterialPageRoute(builder: (BuildContext context) => new MyHomePage())),
// onTap: () => Navigator.of(context).pushAndRemoveUntil(new MaterialPageRoute(builder: (BuildContext context) => new TestsList()), (Route route) => route == null),
onTap: () => Navigator.of(context).pushAndRemoveUntil(new MaterialPageRoute(builder: (BuildContext context) => new Page()), (Route route) => route == null),
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new Text("AP GO POW", style: new TextStyle(color: Colors.white, fontSize: 50.0, fontWeight: FontWeight.bold),),
new Text("Tap to start!", style: new TextStyle(color: Colors.white, fontSize: 20.0, fontWeight: FontWeight.bold),),
new Text(""),
Image.network(
'https://www.askthecat.org/uploads/6/2/4/4/62443641/65-ask-the-cat_13.png',
),
],
),
),
);
}
}