Flutter ofron dy sisteme kryesore të projektimit si grupe widget-esh: Material (Material Design i Google-it, në stilin Android) dhe Cupertino (në stilin iOS). Ato ju lejojnë të ndërtoni ndërfaqe përdoruese që përputhen me gjuhën e projektimit të secilës platforme, ose një pamje të personalizuar konsistente.
Widget-et 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.
