Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 15dedf2

Browse files
committed
add medicine picture
1 parent e61387a commit 15dedf2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

lib/gui/medicine_page.dart

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,40 @@ class _MedicinePageState extends State<MedicinePage> {
176176
),
177177
),
178178
),
179+
Container(
180+
child: Column(
181+
mainAxisAlignment: MainAxisAlignment.start,
182+
children: <Widget>[
183+
SizedBox(
184+
height: 10.0,
185+
),
186+
Row(
187+
mainAxisAlignment: MainAxisAlignment.center,
188+
children: <Widget>[
189+
Align(
190+
alignment: Alignment.center,
191+
child: CircleAvatar(
192+
radius: 80,
193+
backgroundColor: Color(0xffffffff),
194+
child: ClipOval(
195+
child: SizedBox(
196+
width: 150.0,
197+
height: 150.0,
198+
child: (widget._medicine.image != null)
199+
? Image.network(widget._medicine.image, fit: BoxFit.fill)
200+
: Image.asset(
201+
"assets/medicine.png",
202+
fit: BoxFit.fill,
203+
),
204+
),
205+
),
206+
),
207+
)
208+
],
209+
)
210+
],
211+
),
212+
),
179213
Container(
180214
padding: EdgeInsets.fromLTRB(0, 10, 0, 0),
181215
child: Column(

0 commit comments

Comments
 (0)