SUBMITTED TO MUHAMMAD JAVED RAZA
SUBMITTED BY DANIAL
REGISTRATION
FA20-BCS-062
MOBILE APPLICATION
LAB TASK
QUESTION 1
Question 1: Understanding MaterialApp 1. Create a Flutter application using MaterialApp with the
following properties: o Disable the debug banner. o Set a custom title for the application. o Apply a theme
with primaryColor as blue and accentColor as orange. 2. Add a dark theme to the above app and toggle
between light and dark themes using a boolean variable. 3. Modify the MaterialApp to display a simple
Scaffold with a Text widget as the body
SCREENSHOT
Output
Question 2
Question 2: Scaffold and AppBar 4. Create a layout with the following specifications: o Use Scaffold. o
Add an AppBar with a title "Material Widgets Lab". o Add a FloatingActionButton with an icon. 5.
Customize the AppBar by: o Adding a background color and elevation. o Including an action button (like
a search icon) in the actions list.
Screenshot
Output
Question 3
Question 3: Working with Material Widgets 6. Design a simple app with: o A Card widget containing a
ListTile with an icon, title, and subtitle. o Add padding around the card. 7. Create a layout using the
Container widget to design a simple profile card: o Add a circular avatar image (use CircleAvatar). o
Display a name and a short bio beneath the avatar using Text widgets.
Screenshot
OUTPUT