Flutter ਦੋ ਮੁੱਖ ਡਿਜ਼ਾਈਨ ਸਿਸਟਮ ਪ੍ਰਦਾਨ ਕਰਦਾ ਹੈ widget ਸੈੱਟਸ ਦੇ ਰੂਪ ਵਿੱਚ: Material (Google ਦਾ Material Design, Android-ਸ਼ੈਲੀ) ਅਤੇ Cupertino (iOS-ਸ਼ੈਲੀ)। ਇਹ ਤੁਹਾਨੂੰ ਹਰੇਕ ਪਲੇਟਫਾਰਮ ਦੀ ਡਿਜ਼ਾਈਨ ਭਾਸ਼ਾ ਨਾਲ ਮੇਲ ਖਾਣ ਵਾਲੀ UI ਬਣਾਉਣ ਦੇ ਯੋਗ ਬਣਾਉਂਦੇ ਹਨ, ਜਾਂ ਇੱਕ ਸਮਰੂਪ ਕਸਟਮ ਲੁੱਕ ਬਣਾਉਂਦੇ ਹਨ।
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.
