Flutter yana ba da tsarin waje guda biyu kamar saiti na widget: Material (Google's Material Design, salo na Android) da Cupertino (salo na iOS). Suna ba ka damar gina UIs da suka dace da yaren zane na kowane dangi, ko kuma sautin kai tsaye mai daidai.
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.
