Flutter widget sets के रूप में दो मुख्य design systems प्रदान करता है: Material (Google का Material Design, Android-style) और Cupertino (iOS-style)। ये आपको प्रत्येक platform की design language से मेल खाते UIs बनाने देते हैं, या एक सुसंगत custom रूप।
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.
