Flutter, iki ana tasarım sistemini widget setleri olarak sağlar: Material (Google'ın Material Design'ı, Android tarzı) ve Cupertino (iOS tarzı). Her platformun tasarım dilini eşleştiren veya tutarlı bir özel görünüm oluşturan kullanıcı arayüzleri inşa etmenize izin verirler.
Material widget'ları (Material Design)
// Material widgets follow Google's Material Design (Android look, but usable anywhere)
MaterialApp( // the app root for Material apps
home: Scaffold( // Material page structure
appBar: AppBar(title: Text('Material')),
body: Center(
child: ElevatedButton( // Material button
onPressed: () {},
child: Text('Material Button'),
),
),
floatingActionButton: FloatingActionButton(onPressed: () {}),
),
)
// Material widgets: Scaffold, AppBar, ElevatedButton, Card, FloatingActionButton, etc.
