Flutter બે મુખ્ય ડિઝાઇન સિસ્ટમો widget સેટ તરીકે પ્રદાન કરે છે: Material (Google નો Material Design, Android-style) અને Cupertino (iOS-style). તેઓ તમને દરેક પ્લેટફોર્મની ડિઝાઇન ભાષા સાથે મેળ ખાતા UIs બનાવવા દે છે, અથવા સુસંગત કસ્ટમ લુક બનાવવા દે છે।
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.
