Flutter biedt twee belangrijkste designsystemen als widget-sets: Material (Google's Material Design, Android-stijl) en Cupertino (iOS-stijl). Hiermee kunt u UI's bouwen die overeenkomen met de designtaal van elk platform, of een consistent aangepast uiterlijk.
Material widgets (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.
