Articles → FLUTTER AND DART → Scaffold Widget In Flutter

Scaffold Widget In Flutter






Purpose





Example




  1. Appbar – This is the fixed size widget on the top of the screen.
  2. 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


Picture showing the output of Scaffold widget in flutter

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, August 19, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250