Commit afe8572e authored by @ashan_IT19063560's avatar @ashan_IT19063560

reviews section updated

parent f4facb35
...@@ -2,6 +2,8 @@ import 'dart:io'; ...@@ -2,6 +2,8 @@ import 'dart:io';
import 'package:barcode_widget/barcode_widget.dart'; import 'package:barcode_widget/barcode_widget.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:google_nav_bar/google_nav_bar.dart';
import 'package:supplydeck_consumer/pages/qr_home.dart';
class First extends StatefulWidget { class First extends StatefulWidget {
@override @override
...@@ -16,11 +18,19 @@ class _FirstState extends State<First> { ...@@ -16,11 +18,19 @@ class _FirstState extends State<First> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
bottomNavigationBar: GNav(
gap: 8,
tabs: [
GButton(icon: Icons.home, text: 'Home'),
GButton(icon: Icons.scanner, text: 'Scanner'),
GButton(icon: Icons.store, text: 'Store'),
GButton(icon: Icons.settings, text: 'Settings'),
],
),
body: Center( body: Center(
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
children: [ children: [
Padding( Padding(
padding: EdgeInsets.all(35), padding: EdgeInsets.all(35),
child: Container( child: Container(
...@@ -52,13 +62,13 @@ class _FirstState extends State<First> { ...@@ -52,13 +62,13 @@ class _FirstState extends State<First> {
code == '' code == ''
? Text('') ? Text('')
: BarcodeWidget( : BarcodeWidget(
barcode: Barcode.qrCode( barcode: Barcode.qrCode(
errorCorrectLevel: BarcodeQRCorrectionLevel.high, errorCorrectLevel: BarcodeQRCorrectionLevel.high,
), ),
data: '$code', data: '$code',
width: 200, width: 200,
height: 200, height: 200,
), ),
], ],
), ),
), ),
......
...@@ -14,7 +14,7 @@ packages: ...@@ -14,7 +14,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.8.2" version: "2.9.0"
barcode: barcode:
dependency: transitive dependency: transitive
description: description:
...@@ -42,28 +42,21 @@ packages: ...@@ -42,28 +42,21 @@ packages:
name: characters name: characters
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.2.1"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
clock: clock:
dependency: transitive dependency: transitive
description: description:
name: clock name: clock
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.0" version: "1.1.1"
collection: collection:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.15.0" version: "1.16.0"
crypto: crypto:
dependency: transitive dependency: transitive
description: description:
...@@ -84,7 +77,7 @@ packages: ...@@ -84,7 +77,7 @@ packages:
name: fake_async name: fake_async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.3.1"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
...@@ -109,6 +102,13 @@ packages: ...@@ -109,6 +102,13 @@ packages:
description: flutter description: flutter
source: sdk source: sdk
version: "0.0.0" version: "0.0.0"
google_nav_bar:
dependency: "direct main"
description:
name: google_nav_bar
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.6"
lints: lints:
dependency: transitive dependency: transitive
description: description:
...@@ -129,21 +129,21 @@ packages: ...@@ -129,21 +129,21 @@ packages:
name: matcher name: matcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.12.11" version: "0.12.12"
material_color_utilities: material_color_utilities:
dependency: transitive dependency: transitive
description: description:
name: material_color_utilities name: material_color_utilities
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.3" version: "0.1.5"
meta: meta:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.7.0" version: "1.8.0"
native_device_orientation: native_device_orientation:
dependency: transitive dependency: transitive
description: description:
...@@ -157,7 +157,7 @@ packages: ...@@ -157,7 +157,7 @@ packages:
name: path name: path
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.0" version: "1.8.2"
qr: qr:
dependency: transitive dependency: transitive
description: description:
...@@ -176,7 +176,7 @@ packages: ...@@ -176,7 +176,7 @@ packages:
name: source_span name: source_span
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.1" version: "1.9.0"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
...@@ -197,21 +197,21 @@ packages: ...@@ -197,21 +197,21 @@ packages:
name: string_scanner name: string_scanner
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.1.0" version: "1.1.1"
term_glyph: term_glyph:
dependency: transitive dependency: transitive
description: description:
name: term_glyph name: term_glyph
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.2.1"
test_api: test_api:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.8" version: "0.4.12"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
...@@ -225,7 +225,7 @@ packages: ...@@ -225,7 +225,7 @@ packages:
name: vector_math name: vector_math
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.1" version: "2.1.2"
sdks: sdks:
dart: ">=2.16.1 <3.0.0" dart: ">=2.17.0-0 <3.0.0"
flutter: ">=2.10.0" flutter: ">=2.10.0"
...@@ -37,6 +37,7 @@ dependencies: ...@@ -37,6 +37,7 @@ dependencies:
barcode_widget: ^2.0.2 barcode_widget: ^2.0.2
flutter_qr_bar_scanner: ^3.0.2 flutter_qr_bar_scanner: ^3.0.2
lottie: ^1.2.2 lottie: ^1.2.2
google_nav_bar: ^5.0.6
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
......
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