Wednesday, June 21, 2023

Scaffold Widget

 Scaffold Widget



  1. The Scaffold widget occupies the whole screen of the device 

  1. Provides the visual structure for the UI of the Flutter app

Properties

  • appBar
  •  body
  •  floatingActionButton
  • drawer
  • backgroundColor
  • bottomNavigationBar

Example (VS code)

import 'package:flutter/material.dart';

void main(List<String> args) {
  runApp(MaterialApp(
      home: Scaffold(
          backgroundColor: Colors.amber,
          appBar: AppBar(
            backgroundColor: Colors.red,
            centerTitle: true,
            title: Text("Profile App"),
          ),
          body: Center(
            child: Text(
              "Welcome to Flutter",
              style: TextStyle(fontSize: 30),
            ),
          ))));
}




No comments:

Post a Comment

Linked List Implementation using C++ Structure

3 Nodes Linked List Implementaion Single Linked list #include<iostream> using namespace std;   struct Node{ int data; Node* next; Node...