
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

1] flutter first project based on container class properties : import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( appBar: AppBar( title: const Text("Container example"), ), body: Container( height:100.0, width:200.0, transform: Matrix4.rotationZ(0.2), margin:const EdgeInsets.all( 20 ), padding:const EdgeInsets.all( 30 ), alignment: Alignment. bottomLeft , decoration: BoxDecoration( border: Border.all(color: Colors. purple ,width: 3 )), // color : Colors.purple, child: const Text("Hello! i am inside a container!", style: TextStyle(fontSize: 9 )), ), ), ); } } 2] flutter project based on scaffold class :