Articles → FLUTTER AND DART → Scaffold Widget In Flutter
Scaffold Widget In Flutter
Purpose
 
Example
 
- Appbar – This is the fixed size widget on the top of the screen.
- Body – Displays the body of the screen.
import 'package:flutter/material.dart';
void main() {
  runApp(MyApp());
}
class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(home: Scaffold(
      appBar: AppBar(title: Text("my app bar")),
      body: Text("Hello"),
    ));
  }
}
Output
 
Click to Enlarge
| Posted By  - | Karan Gupta | 
|  | 
| Posted On  - | Monday, August 19, 2019 |