#9 Flutter | Container & Padding

Опубликовано: 28 Май 2026
на канале: kalptaru academy
189
21

#flutter


Code File Link : https://drive.google.com/file/d/1TYCN...

full code :
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
);
// This is the theme of your application.
}
}

class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Biginner Demo'),
centerTitle: true,
brightness: Brightness.light,
backgroundColor: Colors.deepPurple[400],
),

body: Padding(
padding: EdgeInsets.all(90.0),
child: Text('Kalptaru Academy'),
),

// Container(
// //color: Colors.amberAccent,
// alignment: Alignment.bottomCenter,
// height: 100.0,
// width: double.infinity,
// padding: EdgeInsets.all(20.0),
// margin: EdgeInsets.all(30.0),
// transform: Matrix4.rotationZ(0.1),
// decoration: BoxDecoration(
// border: Border.all(color: Colors.black, width: 3),
// ),
// child: Text("Kalptaru Academy(IT)"),
// ),
floatingActionButton: FloatingActionButton(
child: Text('Click'),
backgroundColor: Colors.deepPurple,
onPressed: () {},
),
);
}
}


instagram id: https://www.instagram.com/dhruv__raba...

#flutter #android #appdeveloper #flutterdeveloper

mail id = [email protected]

©all rights reserved by Kalptaru academy