File tree Expand file tree Collapse file tree
pages/product/add_new_product Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import 'package:smooth_app/pages/product/simple_input/simple_input_page_helpers.
2929import 'package:smooth_app/query/product_query.dart' ;
3030import 'package:smooth_app/themes/smooth_theme_colors.dart' ;
3131import 'package:smooth_app/themes/theme_provider.dart' ;
32+ import 'package:smooth_app/widgets/smooth_barcode_widget.dart' ;
3233import 'package:smooth_app/widgets/smooth_scaffold.dart' ;
3334import 'package:smooth_app/widgets/v2/smooth_buttons_bar.dart' ;
3435import 'package:smooth_app/widgets/v2/smooth_leading_button.dart' ;
@@ -614,6 +615,18 @@ class _AddNewProductPageState extends State<AddNewProductPage>
614615 ),
615616 );
616617 }
618+ rows.add (
619+ SmoothBarcodeWidget (
620+ height: 75 ,
621+ padding: const EdgeInsetsDirectional .only (
622+ start: VERY_LARGE_SPACE ,
623+ end: VERY_LARGE_SPACE ,
624+ top: VERY_LARGE_SPACE ,
625+ ),
626+ color: context.lightTheme () ? Colors .black : Colors .white,
627+ barcode: barcode,
628+ ),
629+ );
617630 return rows;
618631 }
619632
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class SmoothBarcodeWidget extends StatelessWidget {
5757 mainAxisAlignment: MainAxisAlignment .center,
5858 crossAxisAlignment: CrossAxisAlignment .center,
5959 children: < Widget > [
60- const icons.Warning (),
60+ icons.Warning (color : color ),
6161 const SizedBox (width: SMALL_SPACE ),
6262 Expanded (
6363 child: FittedBox (
Original file line number Diff line number Diff line change @@ -1060,10 +1060,10 @@ packages:
10601060 dependency: transitive
10611061 description:
10621062 name: meta
1063- sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349 "
1063+ sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394 "
10641064 url: "https://pub.dev"
10651065 source: hosted
1066- version: "1.18 .0"
1066+ version: "1.17 .0"
10671067 mgrs_dart:
10681068 dependency: transitive
10691069 description:
@@ -1687,10 +1687,10 @@ packages:
16871687 dependency: transitive
16881688 description:
16891689 name: test_api
1690- sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e "
1690+ sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a "
16911691 url: "https://pub.dev"
16921692 source: hosted
1693- version: "0.7.11 "
1693+ version: "0.7.10 "
16941694 torch_light:
16951695 dependency: "direct main"
16961696 description:
@@ -1949,4 +1949,4 @@ packages:
19491949 version: "3.1.3"
19501950sdks:
19511951 dart: ">=3.11.5 <4.0.0"
1952- flutter: ">=3.41.8"
1952+ flutter: ">=3.41.8 <4.0.0 "
You can’t perform that action at this time.
0 commit comments