Commit d6dfc560 authored by Dasun Madushanka's avatar Dasun Madushanka

update screen details- add more information about DMT

parent c207515f
import 'package:DMTI_app/models/product.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import '../../constants.dart';
import 'components/body.dart';
class DetailsScreen extends StatelessWidget {
final Product product;
const DetailsScreen({Key key, this.product}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: kPrimaryColor,
appBar: buildAppBar(context),
body: Body(
product: product,
),
);
}
AppBar buildAppBar(BuildContext context) {
return AppBar(
backgroundColor: kBackgroundColor,
elevation: 0,
leading: IconButton(
padding: EdgeInsets.only(left: kDefaultPadding),
icon: SvgPicture.asset("assets/icons/back.svg"),
onPressed: () {
Navigator.pop(context);
},
),
centerTitle: false,
title: Text(
'Back'.toUpperCase(),
style: Theme.of(context).textTheme.bodyText2,
),
actions: <Widget>[
IconButton(
icon: SvgPicture.asset('assets/icons/notification.svg'),
onPressed: () {},
),
],
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment