Flutter Widgets: Abedalraheem Alsaqqa
Flutter Widgets: Abedalraheem Alsaqqa
Flutter Widgets: Abedalraheem Alsaqqa
WIDGETS
ABEDALRAHEEM AL S AQQ A
4- cd to myapp folder
5- code .
we can type cmd to open the
cmd for our folder the one that
we created to contain our app
hit enter after typing the above command
flutter create myapp
type :
cd myapp
then hit enter
now i am inside my app directory
now type :
code .
this is because the container and the card are still empty
let's try to add few things to our container and card
the c
olum
mea n wid
ns ea get a
ch on rran
e of ges th
the w e ite
idget ms v
will c s base ertica
ome d on lly w
first its se hich
quen
ce
now let's see
the code tha
t was used t
previous out o have the
come
I will divide
it into piece
s
Container(
color: Colors.amber,
width: 200,
height: 200,
child: Text(
"hello i am inside the container",
style: TextStyle(fontSize: 40),
),
),
Card(
margin: EdgeInsets.all(70),
elevation: 30,
shadowColor: Colors.red,
color: Colors.pink,
child: Text(
"hello i am inside the card",
style: TextStyle(fontSize: 30),
),
),
Text(
"hello i am inside the text",
style:
TextStyle(fontSize: 30, backgroundColor:
Colors.blueAccent),
)
all of the previous pices inside on list which is the
children: [ ]