Flutter दोन मुख्य डिজाइन सिस्टीम्स विजेट सेट्स म्हणून प्रदान करते: Material (Google चे Material Design, Android-शैली) आणि Cupertino (iOS-शैली). ते तुम्हाला प्रत्येक प्लॅटफॉर्मची डिजाइन भाषा जुळवून किंवा सुसंगत कस्टम लुक बनवून UIs तयार करू देतात.
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.
