You are on page 1of 2

import 'package:flutter/material.

dart';
main(){
runApp(exemple());
}

class exemple extends StatefulWidget {


const exemple({Key? key}) : super(key: key);

@override
State<exemple> createState() => _exempleState();
}

class _exempleState extends State<exemple> {


@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("ayman"),centerTitle: true,),
body: Column(
children: [
Padding(
padding: const EdgeInsets.all(10.0),
child: CircleAvatar(
radius: 50.0,
backgroundImage: AssetImage("assets/tt.png"),
),
),
Padding(
padding: const EdgeInsets.all(10.0),
child: TextField(

decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Email',
),
),
),
Padding(
padding: const EdgeInsets.all(10.0),
child: TextField(
obscureText: true,
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Password',

),
),
),
TextButton(
style: TextButton.styleFrom( backgroundColor: Colors.blue[900],
padding: EdgeInsets.all(16.0), textStyle:
TextStyle(fontSize: 20, ),
),
onPressed: () {},
child: Text('Valider'),
)

],
),
),
);
}
}

You might also like