A Flutter két fő design rendszert biztosít widget-készletként: a Material (Google Material Design, Android-stílusú) és a Cupertino (iOS-stílusú) rendszert. Lehetővé teszik, hogy az egyes platformok design nyelvével egyező felhasználói felületet, vagy egy konzisztens egyéni megjelenést építs ki.
Material widgetek (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.
