Skip to content

Commit

Permalink
UI Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
avijeet108 committed Jan 1, 2022
1 parent d579bb4 commit 1988df7
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 63 deletions.
127 changes: 65 additions & 62 deletions lib/screens/edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,71 +113,74 @@ class _editState extends State<edit> {
),
body: _isLoading == true
? Center(child: CircularProgressIndicator())
: Container(
child: Column(
children: [
SizedBox(
height: 10.0,
),
GestureDetector(
onTap: () {
getImage();
},
child: SelectedImage != null
? Container(
margin: EdgeInsets.symmetric(horizontal: 16),
height: 150.0,
width: MediaQuery.of(context).size.width,
child: ClipRRect(
borderRadius: BorderRadius.circular(6.0),
child: Image.file(
SelectedImage!,
fit: BoxFit.cover,
: SingleChildScrollView(
child: Container(
child: Column(
children: [
SizedBox(
height: 10.0,
),
GestureDetector(
onTap: () {
getImage();
},
child: SelectedImage != null
? Container(
margin: EdgeInsets.symmetric(horizontal: 16),
height: 150.0,
width: MediaQuery.of(context).size.width,
child: ClipRRect(
borderRadius: BorderRadius.circular(6.0),
child: Image.file(
SelectedImage!,
fit: BoxFit.cover,
),
),
)
: Container(
margin: EdgeInsets.symmetric(horizontal: 16),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(6.0)),
height: 150.0,
width: MediaQuery.of(context).size.width,
child: Icon(
Icons.add_a_photo,
color: Colors.black45,
),
),
)
: Container(
margin: EdgeInsets.symmetric(horizontal: 16),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(6.0)),
height: 150.0,
width: MediaQuery.of(context).size.width,
child: Icon(
Icons.add_a_photo,
color: Colors.black45,
),
),
),
SizedBox(
height: 8,
),
Container(
margin: EdgeInsets.symmetric(horizontal: 16),
child: Column(
children: [
TextFormField(
initialValue: widget.title,
onChanged: (value) {
title = value;
},
),
TextFormField(
initialValue: widget.des,
onChanged: (value) {
desc = value;
},
),
TextFormField(
initialValue: widget.authName,
onChanged: (value) {
author = value;
},
)
],
),
)
],
SizedBox(
height: 8,
),
Container(
margin: EdgeInsets.symmetric(horizontal: 16),
child: Column(
children: [
TextFormField(
initialValue: widget.title,
onChanged: (value) {
title = value;
},
),
TextFormField(
maxLines: 5,
initialValue: widget.des,
onChanged: (value) {
desc = value;
},
),
TextFormField(
initialValue: widget.authName,
onChanged: (value) {
author = value;
},
)
],
),
)
],
),
),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/views/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class _HomePageState extends State<HomePage> {
color: Colors.white),
),
SizedBox(
width: 10,
width: 5,
),
Text(
"$name",
Expand Down

0 comments on commit 1988df7

Please sign in to comment.