DeveloperBreeze

Dart Development Tutorials, Guides & Insights

Unlock 3+ expert-curated dart tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your dart skills on DeveloperBreeze.

Tutorial
dart

دليل شامل: تطوير تطبيقات باستخدام إطار العمل Flutter

لإضافة زر يقوم بتغيير النص عند الضغط عليه:

import 'package:flutter/material.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String message = 'اضغط على الزر لتغيير النص';

  void changeMessage() {
    setState(() {
      message = 'تم تغيير النص!';
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('تطبيق Flutter تفاعلي'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Text(
                message,
                style: TextStyle(fontSize: 20),
              ),
              SizedBox(height: 20),
              ElevatedButton(
                onPressed: changeMessage,
                child: Text('اضغط هنا'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Dec 12, 2024
Read More
Tutorial
dart

Building an Advanced Weather App with Flutter and Dart

Run flutter pub get to install the packages.

Let's start by building the UI components.

Aug 12, 2024
Read More
Tutorial
dart

Introduction to Flutter and Dart

  • lib/main.dart: The main entry point for your Flutter application.
  • pubspec.yaml: The configuration file where you specify dependencies.
  • android/ and ios/: Platform-specific code.

Let’s create a simple counter app to understand Flutter’s basic concepts.

Aug 12, 2024
Read More