123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- import 'package:flutter/material.dart';
- import 'package:fooddeliveryapp/constants.dart';
- import 'package:fooddeliveryapp/model/product.dart';
- import 'counter_with_fav_btn.dart';
- import 'description.dart';
- import 'product_title_with_image.dart';
- class DetailsBody extends StatelessWidget {
- final Product product;
- const DetailsBody({Key key, this.product}) : super(key: key);
- @override
- Widget build(BuildContext context) {
-
- Size size = MediaQuery.of(context).size;
- return SingleChildScrollView(
- child: Column(
- children: <Widget>[
- SizedBox(
- height: size.height * 1.2,
- child: Stack(
- children: <Widget>[
- Container(
- margin: EdgeInsets.only(top: size.height * 0.4),
- padding: EdgeInsets.only(
- top: size.height * 0.12,
- left: kDefaultPaddin,
- right: kDefaultPaddin,
- ),
-
- decoration: BoxDecoration(
- color: Colors.white,
- borderRadius: BorderRadius.only(
- topLeft: Radius.circular(24),
- topRight: Radius.circular(24),
- ),
- ),
- child: Column(
- children: <Widget>[
-
-
- Description(product: product),
- SizedBox(height: kDefaultPaddin / 2),
- CounterWithFavBtn(
- product: product,
- ),
- SizedBox(height: kDefaultPaddin / 2),
-
- ],
- ),
- ),
- ProductTitleWithImage(product: product)
- ],
- ),
- )
- ],
- ),
- );
- }
- }
|