@@ -137,68 +137,63 @@ class OfficeFurnitureDetailScreen extends HookWidget {
137137 ).fadeAnimation (1.3 );
138138 }
139139
140- return WillPopScope (
141- onWillPop: () async {
142- return Future .value (true );
143- },
144- child: Scaffold (
145- bottomNavigationBar: bottomBar (),
146- appBar: appBar (context),
147- body: SingleChildScrollView (
148- child: Padding (
149- padding: const EdgeInsets .all (15 ),
150- child: Column (
151- crossAxisAlignment: CrossAxisAlignment .start,
152- children: [
153- furnitureImageSlider (height),
154- Center (
155- child: StarRatingBar (
156- score: furniture.score,
157- itemSize: 25 ,
158- ).fadeAnimation (0.4 ),
159- ),
160- Padding (
161- padding: const EdgeInsets .only (top: 20 , bottom: 10 ),
162- child: const Text (
163- "Synopsis" ,
140+ return Scaffold (
141+ bottomNavigationBar: bottomBar (),
142+ appBar: appBar (context),
143+ body: SingleChildScrollView (
144+ child: Padding (
145+ padding: const EdgeInsets .all (15 ),
146+ child: Column (
147+ crossAxisAlignment: CrossAxisAlignment .start,
148+ children: [
149+ furnitureImageSlider (height),
150+ Center (
151+ child: StarRatingBar (
152+ score: furniture.score,
153+ itemSize: 25 ,
154+ ).fadeAnimation (0.4 ),
155+ ),
156+ Padding (
157+ padding: const EdgeInsets .only (top: 20 , bottom: 10 ),
158+ child: const Text (
159+ "Synopsis" ,
160+ style: h2Style,
161+ textAlign: TextAlign .end,
162+ ).fadeAnimation (0.6 ),
163+ ),
164+ Text (
165+ furniture.description,
166+ maxLines: 5 ,
167+ overflow: TextOverflow .ellipsis,
168+ style: const TextStyle (color: Colors .black45),
169+ ).fadeAnimation (0.8 ),
170+ const SizedBox (height: 20 ),
171+ Row (
172+ children: [
173+ const Text (
174+ "Color :" ,
164175 style: h2Style,
165176 textAlign: TextAlign .end,
166- ). fadeAnimation ( 0.6 ) ,
167- ),
168- Text (
169- furniture.description,
170- maxLines : 5 ,
171- overflow : TextOverflow .ellipsis,
172- style : const TextStyle (color : Colors .black45),
173- ). fadeAnimation ( 0.8 ),
174- const SizedBox (height : 20 ),
175- Row (
176- children : [
177- const Text (
178- "Color :" ,
179- style : h2Style,
180- textAlign : TextAlign .end ,
177+ ),
178+ Expanded (child : ColorPicker (colors : furniture.colors) ),
179+ Expanded (
180+ child : CounterButton (
181+ label : items[index].quantity ,
182+ onIncrementSelected : () {
183+ context
184+ . read < FurnitureProvider >()
185+ . increaseQuantity (items[index]);
186+ },
187+ onDecrementSelected : () {
188+ context
189+ . read < FurnitureProvider >()
190+ . decreaseQuantity (items[index]);
191+ } ,
181192 ),
182- Expanded (child: ColorPicker (colors: furniture.colors)),
183- Expanded (
184- child: CounterButton (
185- label: items[index].quantity,
186- onIncrementSelected: () {
187- context
188- .read <FurnitureProvider >()
189- .increaseQuantity (items[index]);
190- },
191- onDecrementSelected: () {
192- context
193- .read <FurnitureProvider >()
194- .decreaseQuantity (items[index]);
195- },
196- ),
197- )
198- ],
199- ).fadeAnimation (1.0 )
200- ],
201- ),
193+ )
194+ ],
195+ ).fadeAnimation (1.0 )
196+ ],
202197 ),
203198 ),
204199 ),
0 commit comments