Commit c4de3eaf authored by Dasun Madushanka's avatar Dasun Madushanka

Update details_screen.dart

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