Technologia

Dart &
Flutter

Jeden codebase — iOS, Android, Web, Desktop. Najszybszy framework do budowy cross-platform apps.

Czym jest Dart?

Dart to język programowania stworzony przez Google, zoptymalizowany pod kątem budowy interfejsów użytkownika. Jest silnie typowany, kompilowany do natywnego kodu maszynowego (AOT) oraz do JavaScript. Dart jest fundamentem frameworka Flutter.

Dart łączy prostotę składni zbliżoną do Java/TypeScript z nowoczesnymi feature'ami: null safety, async/await, mixins, extension methods i pattern matching.

Przykłady kodu

Hello World & podstawy

Dart void main() { var name = 'Assadante'; print('Witaj w $name!'); // Null safety String? nullable; print(nullable?.length ?? 0); }

Klasy i konstruktory

Dart class User { final String name; final String email; final int age; const User({ required this.name, required this.email, required this.age, }); String get displayName => '$name ($age)'; bool get isAdult => age >= 18; }

Async / Await & HTTP

Dart import 'package:http/http.dart' as http; import 'dart:convert'; Future<List<User>> fetchUsers() async { final response = await http.get( Uri.parse('https://api.example.com/users'), ); if (response.statusCode == 200) { final List data = jsonDecode(response.body); return data.map((json) => User.fromJson(json)).toList(); } throw Exception('Błąd pobierania danych'); }

Flutter Widget

Flutter / Dart class ProfileCard extends StatelessWidget { final User user; const ProfileCard({required this.user}); @override Widget build(BuildContext context) { return Card( child: ListTile( leading: CircleAvatar( child: Text(user.name[0]), ), title: Text(user.displayName), subtitle: Text(user.email), trailing: Icon( user.isAdult ? Icons.check_circle : Icons.warning, color: user.isAdult ? Colors.green : Colors.orange, ), ), ); } }

Ocena kompetencji

Wydajność
92%
Cross-platform
98%
Ekosystem
82%
Łatwość nauki
85%
Popularność
78%
Hot Reload
99%

Co potrafi Dart / Flutter

Aplikacje mobilne

Natywna wydajność na iOS i Android z jednego codebase. Skia rendering engine.

Aplikacje webowe

Flutter Web kompiluje do JS/Wasm. Idealne do dashboardów i paneli admin.

Desktop

Windows, macOS, Linux — natywne aplikacje desktopowe z jednego kodu.

Hot Reload

Zmiany w kodzie widoczne natychmiast. Najszybszy dev loop w branży.

Animacje

60/120 FPS animacje. Rive, Lottie, custom painters. Pixel-perfect UI.

Firebase integracja

FlutterFire — oficjalne pluginy do Auth, Firestore, Storage, Functions, Analytics.

Kiedy wybrać Dart / Flutter?

Idealny gdy: budujesz aplikację mobilną na iOS i Android, chcesz szybki time-to-market, potrzebujesz pięknego UI z custom animacjami, planujesz też wersję web/desktop.

Nie najlepszy gdy: potrzebujesz tylko strony www (lepiej Next.js), budujesz heavy-compute backend (lepiej Go/Python), potrzebujesz natywnych API specyficznych dla jednej platformy.