Steps To Create Qoute App 3
Steps To Create Qoute App 3
Lesson Overview
In this lesson, we will create a simple Flutter application that displays quotes about hard
work on three different screens. Each screen will have a unique background color and
navigation buttons to move between screens. This app is beginner-friendly and uses basic
Flutter widgets.
Prerequisites
Before starting this lesson, make sure you have the following installed:
- Flutter SDK
Folder Structure
lib/
│
├─ main.dart // Main Entry Point
├─ first_screen.dart // First Screen (Green)
├─ second_screen.dart // Second Screen (Orange)
└─ third_screen.dart // Third Screen (Pink)
Step-by-Step Implementation
1. main.dart
This file is the entry point of the application. It starts the app and loads the FirstScreen.
import 'package:flutter/material.dart';
import 'first_screen.dart';
void main() {
runApp(MyApp());
}
2. first_screen.dart
This screen displays the first quote with a green background and a button to move to the
next screen.
import 'package:flutter/material.dart';
import 'second_screen.dart';
3. second_screen.dart
This screen displays the second quote with an orange background and buttons to navigate
forward and backward.
import 'package:flutter/material.dart';
import 'first_screen.dart';
import 'third_screen.dart';
4. third_screen.dart
This screen displays the third quote with a pink background and a button to return to the
previous screen.
import 'package:flutter/material.dart';
import 'second_screen.dart';
Conclusion
In this lesson, we learned how to create a simple three-screen Flutter app with navigation
and background colors. This project helps beginners understand basic widgets like Scaffold,
Navigator, and Buttons.