Appearance
Flutter
Dart-based UI toolkit for beautiful, natively compiled applications.
Overview
Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
Features
- Single codebase for multiple platforms
- Fast development with hot reload
- Expressive and flexible UI
- Native performance
- Strong typing with Dart
- Rich widget library
Getting Started
bash
flutter create my_app
cd my_app
flutter runBasic Example
dart
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(
title: 'Flutter Demo',
home: MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
_counter++;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Flutter Demo'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('Count: $_counter'),
ElevatedButton(
onPressed: _incrementCounter,
child: const Text('Increment'),
),
],
),
),
);
}
}PAPER-CODE Integration
PAPER-CODE provides:
- Flutter project templates
- State management setups
- Navigation configurations
- Testing frameworks