Ahmet Balaman LogoAhmet Balaman

Getting Started with Flutter Mobile App Development

personAhmet Balaman
calendar_today
FlutterDartMobile AppCross-Platform

Getting Started with Flutter Mobile App Development

Flutter is an open-source UI framework developed by Google. It allows you to develop iOS, Android, Web and Desktop applications from a single codebase.

What is Flutter?

Flutter is a framework created by Google for developing modern and fast mobile applications. It uses the Dart programming language and offers cross-platform development.

Live Demo: Flutter Starter Example

Try your first Flutter application interactively:

Advantages of Flutter

  1. Single Codebase: You can use the same code for iOS and Android
  2. Hot Reload: You can see changes instantly
  3. Rich Widget Library: Material Design and Cupertino widgets
  4. High Performance: Speed close to native performance
  5. Large Community: A wide developer community and package ecosystem

Dart Programming Language

Flutter uses the Dart language. Dart is a modern, object-oriented and type-safe language.

void main() {
  print('Hello Flutter!');
  
  var name = 'Ahmet';
  int age = 25;
  
  print('My name is $name and I am $age years old');
}

Flutter Installation

1. Download Flutter SDK

Download the Flutter SDK from Flutter official website and follow the installation instructions.

2. Choose an IDE

  • Android Studio (Recommended)
  • VS Code (Light and fast)
  • IntelliJ IDEA

3. Verify Installation

Run this command in Terminal:

flutter doctor

Your First Flutter Application

To create a new Flutter project:

flutter create my_first_app
cd my_first_app
flutter run

A Simple Widget Example

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'My First App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Hello Flutter'),
        ),
        body: Center(
          child: Text(
            'I am developing with Flutter!',
            style: TextStyle(fontSize: 24),
          ),
        ),
      ),
    );
  }
}

What is a Widget?

In Flutter, everything is a widget. A button, text, color, padding - all are widgets.

There are Two Types of Widgets:

  1. StatelessWidget: Widgets that don't change
  2. StatefulWidget: Widgets whose state can change

Conclusion

Flutter is a great framework for mobile app development. Easy to learn, enjoyable to use, and impressive results.

Continue Learning


Have questions? Contact me via WhatsApp!

Want to take lessons? You can access my courses on Sorbil or Superprof platforms.