0% found this document useful (0 votes)
5 views

flutter

Uploaded by

benjaminmutanga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

flutter

Uploaded by

benjaminmutanga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

import "package:flutter/material.

dart";

void main() {
runApp(const MaterialApp(
home: HomePage(),
));
}

class HomePage extends StatefulWidget {


const HomePage({super.key});

@override
State<HomePage> createState() {
return HomePageState();
}
}

class HomePageState extends State<HomePage> {


int cuteer = 0;

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("container"),
elevation: 12,
),
body: Center(
child: Text("N° $cuteer"),
),
floatingActionButton: FloatingActionButton(
onPressed: () {
setState(() {
cuteer += 1;
});
},
child: const Icon(Icons.add),
),
);
}
}

body: Container(
padding: const EdgeInsets.all(20),
margin: const EdgeInsets.all(20),
height: 200,
width: 400,
decoration: BoxDecoration(
color: Colors.blue, borderRadius: BorderRadius.circular(10)),
child: const Text("bonjour"),
alignment: Alignment.topRight,
),
body: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const Text("text1"),
const Text("texte2"),
Image.network(

"https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/RFI_logo_2013.svg/
1200px-RFI_logo_2013.svg.png")
],
),

body: const Row(


mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [Text("texte1"), Text("text2"), Text("text3")],
),

final List images = [


"https://encrypted-tbn0.gstatic.com/images?
q=tbn:ANd9GcTNKuIkcsYdVnmVTD6_KrR9ItfC8R1ZNrIbWw&s"
"https://encrypted-tbn0.gstatic.com/images?
q=tbn:ANd9GcTNKuIkcsYdVnmVTD6_KrR9ItfC8R1ZNrIbWw&s"
"https://encrypted-tbn0.gstatic.com/images?
q=tbn:ANd9GcTNKuIkcsYdVnmVTD6_KrR9ItfC8R1ZNrIbWw&s"
"https://encrypted-tbn0.gstatic.com/images?
q=tbn:ANd9GcTNKuIkcsYdVnmVTD6_KrR9ItfC8R1ZNrIbWw&s"
"https://encrypted-tbn0.gstatic.com/images?
q=tbn:ANd9GcTNKuIkcsYdVnmVTD6_KrR9ItfC8R1ZNrIbWw&s"
];
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("ListView"),
elevation: 12,
),
body: ListView.builder(
itemCount: images.length,
itemBuilder: (context, index) {
return Image.network(
images[index],
width: 100,
);
},
),

NAVIGATION WHATSAPP

You might also like