UI Design Flutter Week 1
UI Design Flutter Week 1
1a)Introduction to FLUTTER.
@override
return MaterialApp(
home: Scaffold(
appBar: AppBar(
),
body: Center(
child: Text(
'Hello, Flutter!',
),
),
),
);
● In this example, the Text widget displays the text "Hello, Flutter!" in the center of the
screen.
● The Text widget is immutable and its appearance is determined solely by its data and
style properties.
● When the app runs, Flutter constructs a widget tree starting from MyApp down to Text, and
ultimately displays the UI on the device.
Widgets are the fundamental building blocks of Flutter applications, responsible for defining both
the visual layout and behavior of the user interface. Understanding how to create, compose, and
manage widgets effectively is crucial for developing robust and responsive Flutter applications.