Skip to content

Added screenshot and code #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 131 additions & 0 deletions Vishnu Raj code/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() {
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

// This widget is the root of your application.
@override
Widget build(BuildContext context) { //widget build function
return MaterialApp( //MaterialApp top widget
debugShowCheckedModeBanner: false,
theme: ThemeData(
// This is the theme of your application.
//
// Try running your application with "flutter run". You'll see the
// application has a blue toolbar. Then, without quitting the app, try
// changing the primarySwatch below to Colors.green and then invoke
// "hot reload" (press "r" in the console where you ran "flutter run",
// or simply save your changes to "hot reload" in a Flutter IDE).
// Notice that the counter didn't reset back to zero; the application
// is not restarted.
primarySwatch: Colors.blue,
),
home: MyHomePage(),//first page to appear opening app
);
}
}



class MyHomePage extends StatefulWidget {


@override
State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {


@override
Widget build(BuildContext context) {
return Scaffold( //main widget
backgroundColor: Colors.grey,
appBar:AppBar(
leading:IconButton(
icon:const Icon(Icons.arrow_back_rounded),
onPressed:() {},
color:Colors.black,
),
elevation:0,
backgroundColor:Colors.transparent
),
body:Container(

height:700,
width: double.infinity, //to use full width of widget
//color:Colors.amber,
padding: EdgeInsets.all(30),
child:Column(children:[Align(child: Text('Edit Profile',style:TextStyle(fontSize:35,fontWeight:FontWeight.w500)),alignment: Alignment.centerLeft),
SizedBox(height:20),
CircleAvatar(
backgroundImage: AssetImage('assets/10-downloadfile.jpg'),
radius:50,
),
Spacer(),

Row(children: const [

Text('Username',style:TextStyle(fontSize:15)),
Spacer(),
Text('Vishnu Raj',style:TextStyle(fontSize:15)),

],),
Divider(thickness: 2.6,color:Colors.black,height: 35),
Spacer(),

Row(children: const [

Text('Email',style:TextStyle(fontSize:15)),
Spacer(),
Text('master345@gmail.com',style:TextStyle(fontSize:15)),

],),
Divider(thickness: 2.6,color:Colors.black,height: 35),
Spacer(),

Row(children: const [

Text('Phone',style:TextStyle(fontSize:15)),
Spacer(),
Text('9764733526',style:TextStyle(fontSize:15)),

],),
Divider(thickness: 2.6,color:Colors.black,height: 35),
Spacer(),

Row(children: [
Column(children:const [
Text('Address',style:TextStyle(fontSize:15)),
],),
Spacer(),
Column(children:const [
Text('Master villa,Mumbai,Maharastra',style:TextStyle(fontSize:15)),
],),
],),
Divider(thickness: 2.6,color:Colors.black,height: 35),
const Spacer(),

Row(children: const [

Text('Date Of Birth',style:TextStyle(fontSize:15)),
Spacer(),
Text('09/10/2001',style:TextStyle(fontSize:15)),

],),
Divider(thickness: 2.6,color:Colors.black,height: 35),
Spacer(),

],


),
),
);
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.