creating a profile page in flutter
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
var arrNames =['ahmad','javed','saami','azhar'];
return Scaffold(
appBar: AppBar(title: Text('Profile')),
body: Column(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
alignment: Alignment.center,
height: 200,
width: 400,
child: Container(
child: Icon(
Icons.account_circle_outlined,
size: 200,
),
),
),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Container(
height: 400,
width: 400,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Row(
children: [
Icon(
Icons.person,
),
Text(' Name...........', style: TextStyle(fontSize: 21, fontWeight: FontWeight.bold, color: Colors.black),),
],
),
Row(
children: [
Icon(Icons.info_outline_rounded),
Text(' About..........', style: TextStyle(fontSize: 21, fontWeight: FontWeight.bold, color: Colors.black),),
],
),
Row(
children: [
Icon(Icons.call),
Text(' Phone..........', style: TextStyle(fontSize: 21, fontWeight: FontWeight.bold, color: Colors.black),),
],
),
],
),
),
)
],
),
);
}
}
Comments
Post a Comment