Skip to content

sharjeelmazhar/flutter-widgets-for-beginners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Flutter Widgets for Beginners 🌟

Welcome to Flutter Widgets for Beginners, a one-stop resource for new Flutter developers to learn about the basics of widgets in Flutter! πŸš€ This GitHub repository aims to help beginners like yourself understand and explore various widgets in Flutter, step by step. If you are just getting started with Flutter, this project is designed to make your learning journey enjoyable and straightforward. πŸŽ‰

What are Widgets? πŸ€”

In Flutter, everything is a widget! Widgets are the basic building blocks of a Flutter app's user interface. They define the structure, layout, and behavior of the UI components, allowing you to create visually appealing and interactive apps. πŸ’‘

Getting Started

If you're new to Flutter, don't worry! We've got you covered. To get started, follow these simple steps:

  1. Install Flutter: If you haven't already installed Flutter on your machine, refer to the official Flutter installation guide for detailed instructions.

  2. Clone the Repository: Clone this repository to your local machine using Git.

git clone https://github.com/sharjeelmazhar/flutter-widgets-for-beginners.git
  1. Explore the Widgets: Every day, a new widget will be added to the repository. Start with Day 1 and progress through the daily folders to learn about different widgets.

  2. Study the Code: Each daily folder contains a Flutter project that demonstrates the widget of the day. Dive into the code, read the comments, and understand how the widget is implemented.

  3. Experiment: Don't be afraid to experiment with the code! Modify the widgets, try out different properties, and see how the changes affect the UI.

  4. Join the Community: Learning together is more fun! Feel free to ask questions, share your progress, and connect with other beginners in the Flutter community.

Repository Structure πŸ“

The repository is organized as follows:

flutter-widgets-for-beginners/
  β”œβ”€β”€ lib/
  β”‚   β”œβ”€β”€ widgets/
  β”‚   β”‚   β”œβ”€β”€ container.dart
  β”‚   β”‚   β”œβ”€β”€ expanded.dart
  β”‚   β”‚   └── ... (other widget files)
  β”‚   └── widgets_screenshots/
  β”‚       β”œβ”€β”€ Container.jpg
  β”‚       β”œβ”€β”€ Expanded.jpg
  β”‚       └── ... (other widget screenshots)
  └── main.dart

  1. The lib folder contains the main source code for the Flutter app. πŸ“‚
  2. The widgets folder contains individual widget files, such as container.dart, expanded.dart, and more, each demonstrating a specific Flutter widget. πŸ“¦
  3. The widgets_screenshots folder can be used to store screenshots or images of how each widget looks when rendered. πŸ“Έ

How to Use This Repository πŸ“

Each day, a new Flutter widget will be added to the widgets folder. To explore and learn about a specific widget:

  1. Open the main.dart file, which serves as the entry point of the app. 🏁

  2. Import the desired widget's file at the top of main.dart. For example, to learn about the Expanded widget:

import 'package:flutter/material.dart';
import 'package:widgets/widgets/expanded.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Expandedd(), // Use the imported widget here
    );
  }
}
  1. Run the app using the Flutter CLI by navigating to the root of the Flutter app folder and executing:
flutter run πŸš€

Alternatively, you can use the "play" button in your code editor or IDE to launch the app. ▢️

  1. You will now see the screen showcasing the widget in action. πŸ“±

  2. Study the code within the imported widget file (expanded.dart, in this example) to understand its implementation, properties, and behavior. πŸ“š

  3. Experiment with the code! Modify the widget's properties, try out different configurations, and observe how it affects the UI. πŸ’‘

Covered Widgets

  1. Container
  2. Column
  3. Expanded

Contribution πŸ‘₯

We welcome contributions from Flutter enthusiasts and developers of all levels. If you have an idea for a new widget, an improvement, or a bug fix, please feel free to submit a pull request. Together, we can make this repository an even more valuable resource for beginners. 🀝

Let's Get Started! πŸš€

Now that you know how the repository is structured and how to use it, it's time to dive in and start your Flutter journey. Have fun exploring the wonderful world of Flutter widgets and building amazing apps! πŸŽ‰

Happy coding! πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Note: This project is maintained by volunteers and is not affiliated with or endorsed by Google or the Flutter team. It is intended solely for educational purposes. πŸ“š

Screenshots

Container

Column

Expanded

About

πŸš€ A One-Stop Guide to Flutter Widgets for Beginners! πŸŽ‰

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published