36 lines
981 B
Dart
36 lines
981 B
Dart
import 'package:cached_network_image/cached_network_image.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:medcify/constants.dart';
|
|
import 'package:medcify/navigation/navigation.dart';
|
|
|
|
class PrescriptionView extends StatelessWidget {
|
|
String image;
|
|
PrescriptionView(this.image);
|
|
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.white,
|
|
appBar: AppBar(
|
|
elevation: 0.25,
|
|
automaticallyImplyLeading: false,
|
|
backgroundColor: Colors.white,
|
|
leading: IconButton(
|
|
onPressed: (){
|
|
Navigation.instance.goBack();
|
|
},
|
|
icon: const Icon(Icons.close_rounded,color: Colors.black,),
|
|
),
|
|
),
|
|
body: Container(
|
|
alignment: Alignment.center,
|
|
padding: const EdgeInsets.all(24),
|
|
child: CachedNetworkImage(
|
|
imageUrl: "https://api.medcify.app/uploads/prescription/$image",
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|