Flutter fournit deux principaux systèmes de conception sous forme d'ensembles de widgets : Material (Material Design de Google, style Android) et Cupertino (style iOS). Ils vous permettent de créer des interfaces utilisateur correspondant au langage de conception de chaque plateforme, ou un aspect personnalisé cohérent.
Widgets Material (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.
