Sunday, May 22, 2022

Stateless Widget

 Stateless Widget


import 'package:flutter/material.dart';

void main(){
runApp(MyApp());
}

class MyApp extends StatelessWidget{
  @override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
       appBar: AppBar(
title: Text("Stateless Widget"),
backgroundColor: Colors.purple.withOpacity(.50),
),
       body: Center(
child: Text("Welcome in my App"),
),
     ),
);    ðŸ’ª // MaterialApp
}

}

No comments:

Post a Comment

Featured post

Compress Image With Show File Size & Resolution in Flutter

 Compress Image With Show File Size & Resolution  1.Multiple File Image Compress with file Size import 'dart:io' ; import 'p...

LightBlog