Commit c4de3eaf authored by Dasun Madushanka's avatar Dasun Madushanka

Update details_screen.dart

parent b5fd3c9a
......@@ -6,9 +6,9 @@ import '../../constants.dart';
import 'components/body.dart';
class DetailsScreen extends StatelessWidget {
final Product product;
final Product product;//procuct.dart
const DetailsScreen({Key key, this.product}) : super(key: key);
const DetailsScreen({Key key, this.product}) : super(key: key);//constant
@override
Widget build(BuildContext context) {
return Scaffold(
......@@ -26,14 +26,14 @@ class DetailsScreen extends StatelessWidget {
elevation: 0,
leading: IconButton(
padding: EdgeInsets.only(left: kDefaultPadding),
icon: SvgPicture.asset("assets/icons/back.svg"),
icon: SvgPicture.asset("assets/icons/back.svg"),//add icon from assets
onPressed: () {
Navigator.pop(context);
},
),
centerTitle: false,
title: Text(
'Back'.toUpperCase(),
'Back'.toUpperCase(),//back
style: Theme.of(context).textTheme.bodyText2,
),
actions: <Widget>[
......
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