birden fazla container ı üst üste kolona yerleştirelim
import 'package:flutter/material.dart';
//void main() =>runApp( new MaterialApp(home: new Text('Merhaba Dünya')));
void main() {
runApp(MyApp());
}
// STLESS yaz enter a bas
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(backgroundColor: Colors.teal,//Colors.red,//Colors.blue,
title: Text('Uygulama Bar')
),
//body: Center(child: Text('Herkese Merhaba')),
//body: Center(child: Image(image:AssetImage('images/poor_dad.jpg') )
body:Container(
color:Colors.amberAccent,
width: 100.0,
height:100.0,
child: Text('Merhaba Dünya'),
),
),
);
}
}
Yorumlar
Yorum Gönder