Your Second Flutter App

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

Part 5: Meet Inherited Widgets

35. Use Portrait Mode

Episode complete

Play next episode

Next
About this episode
See versions

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 34. Lift State Up Next episode: 36. Conclusion

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

Take your career further with a Kodeco Pro subscription. 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.

This video Use Portrait Mode was last updated on Nov 30 2021

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

Ok, the app is almost complete. We’re going to make two small improvements.

Widget build(BuildContext context) {
  SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);

		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
flutter pub add url_launcher
import 'package:url_launcher/url_launcher.dart';
void _launchCourse(String courseId) {
  launch("https://raywenderlich.com/$courseId");
}
children: <Widget>[
  _buildBanner(),
  _buildMain(context),
  _buildDetails(context),
  TextButton(
    child: const Text('View Course'),
    onPressed: () => _launchCourse(course.courseId),
  ),
],