📲 Download Our Apps

EMI Calculator

Download EMI Calculator

SOA Games

Download SOA Games

SOA Technology App

Download SOA Technology

BMI Checker

Download BMI Checker

Task Jira

Download Task Jira

Laughing Adda

Download Laughing Adda

📅 हिंदी कैलेंडर ऐप डाउनलोड करें

Download Shubhcalendar App

Now let’s start learning Flutter Widgets step by step using VS Code.

Now let’s start learning Flutter Widgets step by step using VS Code.
We’ll go from the very basics and build small UIs together .


Step 1: Text Widget

Shows simple text on screen.

import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Text Widget Example")),
        body: const Center(
          child: Text(
            "Hello Flutter ",
            style: TextStyle(
              fontSize: 30,
              fontWeight: FontWeight.bold,
              color: Colors.blue,
            ),
          ),
        ),
      ),
    );
  }
}

Try it → You’ll see Hello Flutter in blue, bold, and big font.


Step 2: Container Widget

A box for styling (color, padding, margin, borders).

body: Center(
  child: Container(
    padding: const EdgeInsets.all(20),
    margin: const EdgeInsets.all(40),
    decoration: BoxDecoration(
      color: Colors.amber,
      borderRadius: BorderRadius.circular(15),
    ),
    child: const Text(
      "Inside a Container",
      style: TextStyle(fontSize: 22, color: Colors.white),
    ),
  ),
),

You’ll see a yellow rounded box with white text.


Step 3: Row & Column

For arranging widgets horizontally / vertically.

body: Column(
  mainAxisAlignment: MainAxisAlignment.center,
  children: const [
    Text("First Line", style: TextStyle(fontSize: 22)),
    Text("Second Line", style: TextStyle(fontSize: 22)),
    Text("Third Line", style: TextStyle(fontSize: 22)),
  ],
),

Changes ColumnRow to place them side by side.


Step 4: Image Widget

Show images.

body: Center(
  child: Image.network(
    "https://picsum.photos/200",
    width: 200,
    height: 200,
  ),
),

Loads a random internet image.
(You can also use Image.asset() for local images in your project.)


Step 5: ElevatedButton

For actions (like clicking).

body: Center(
  child: ElevatedButton(
    onPressed: () {
      print("Button Clicked!");
    },
    child: const Text("Click Me"),
  ),
),

When you press the button, it prints in Debug Console.


Now you know the 5 most important widgets:
Text, Container, Row, Column, Button




Leave a Reply

AI Spiritual Tools & Interactive Experiences

Explore powerful AI-driven tools for daily guidance, spirituality, fun quizzes, and self-discovery.

Today’s Quote

Get inspiring daily quotes powered by AI to motivate and guide your day.

Explore Now

AI Tarot Card Reader

Reveal insights about your future, love, and career with AI tarot readings.

Read Tarot

Love Match Calculator

Check compatibility and love predictions using AI-based analysis.

Check Match

Fortune Cookie

Open an AI fortune cookie and receive wisdom, luck, and fun messages.

Open Cookie

Quiz Categories

Engage with knowledge-based and fun quizzes across multiple categories.

Start Quiz

Panchang Calendar

View daily Panchang, auspicious timings, tithi, nakshatra, and festivals.

View Panchang

Online Numerology

Discover your destiny number, life path, and numerology predictions.

Calculate Now

Spiritual Feeds

Stay connected with spiritual thoughts, mantras, and divine content.

View Feeds

Quiz Hub

Attempt trending quizzes on GK, spirituality, festivals, and more.

Explore Quizzes