Your Second Flutter App

Nov 30 2021 · Dart 2.13, Flutter 2.2.3, Visual Studio Code

Part 3: Navigate & Animate

17. Navigate Between Screens

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 16. Introduction Next episode: 18. Create a Custom Image Widget

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

Setting up navigation between the multiple screens of your app is an important aspect of app development.

class CourseDetailsPage extends StatelessWidget {

  CourseDetailsPage({Key key, this.course}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(

    );
  }
}
final Course course;
import '../../model/course.dart';
const CourseDetailPage({Key? key, required this.course}) : super(key: key);
return Scaffold(
      appBar: AppBar(title: Text(course.name)),
      body: const Text('Course detail'),
    );
onTap: () {

},
Navigator.of(context).push<MaterialPageRoute>());
MaterialPageRoute(
  builder: (context) => CourseDetailsPage(
    course: course,
  ),
),
import '../course_detail/course_details_page.dart';