Flutter இரண்டு முக்கிய டிசைன் கணினிகளை விட்ஜெட் செட்டுகளாகப் பிரதான செய்கிறது: Material (Google இன் Material Design, Android-style) மற்றும் Cupertino (iOS-style). அவை ஒவ்வொரு தளத்தின் டிசைன் மொழியுடன் UI கட்டவோ அல்லது ஒரு சீரான தனிப்பட்ட தோற்றத்துடன் கட்டவோ உங்களுக்கு அனுமதி தருகின்றன.
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.
