Skip to content

Commit beadc9a

Browse files
committed
update qr scanner to show do not honor
1 parent bef426b commit beadc9a

File tree

9 files changed

+120
-20
lines changed

9 files changed

+120
-20
lines changed

Diff for: ,.

Whitespace-only changes.

Diff for: ios/Flutter/Debug.xcconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Generated.xcconfig"

Diff for: ios/Flutter/Release.xcconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Generated.xcconfig"

Diff for: ios/Podfile

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '11.0'
3+
4+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6+
7+
project 'Runner', {
8+
'Debug' => :debug,
9+
'Profile' => :release,
10+
'Release' => :release,
11+
}
12+
13+
def flutter_root
14+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15+
unless File.exist?(generated_xcode_build_settings_path)
16+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17+
end
18+
19+
File.foreach(generated_xcode_build_settings_path) do |line|
20+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
21+
return matches[1].strip if matches
22+
end
23+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24+
end
25+
26+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27+
28+
flutter_ios_podfile_setup
29+
30+
target 'Runner' do
31+
use_frameworks!
32+
use_modular_headers!
33+
34+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35+
target 'RunnerTests' do
36+
inherit! :search_paths
37+
end
38+
end
39+
40+
post_install do |installer|
41+
installer.pods_project.targets.each do |target|
42+
flutter_additional_ios_build_settings(target)
43+
end
44+
end

Diff for: lib/screens/qr_scanner_screen/qr_scanner_screen.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ class _QrScannerScreenState extends ConsumerState<QrScannerScreen> {
6464
(responseData) => showDialog(
6565
context: context,
6666
builder: (ctx) => AlertDialog(
67-
title: const Text('Success'),
67+
backgroundColor: responseData.used ? Colors.redAccent : Colors.white,
68+
title: responseData.used ? const Text("DO NOT HONOR") : const Text('Success'),
6869
content: Text(
6970
'User NetID: ${responseData.ticketholderNetId}\n Event ID: ${responseData.eventId}\nUsed: ${responseData.used}'),
7071
actions: [

Diff for: macos/Flutter/Flutter-Debug.xcconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "ephemeral/Flutter-Generated.xcconfig"

Diff for: macos/Flutter/Flutter-Release.xcconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "ephemeral/Flutter-Generated.xcconfig"

Diff for: macos/Podfile

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
platform :osx, '10.14'
2+
3+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5+
6+
project 'Runner', {
7+
'Debug' => :debug,
8+
'Profile' => :release,
9+
'Release' => :release,
10+
}
11+
12+
def flutter_root
13+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
14+
unless File.exist?(generated_xcode_build_settings_path)
15+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
16+
end
17+
18+
File.foreach(generated_xcode_build_settings_path) do |line|
19+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
20+
return matches[1].strip if matches
21+
end
22+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
23+
end
24+
25+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
26+
27+
flutter_macos_podfile_setup
28+
29+
target 'Runner' do
30+
use_frameworks!
31+
use_modular_headers!
32+
33+
flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
34+
target 'RunnerTests' do
35+
inherit! :search_paths
36+
end
37+
end
38+
39+
post_install do |installer|
40+
installer.pods_project.targets.each do |target|
41+
flutter_additional_macos_build_settings(target)
42+
end
43+
end

Diff for: pubspec.lock

+27-19
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ packages:
2929
dependency: transitive
3030
description:
3131
name: async
32-
sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0
32+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "2.10.0"
35+
version: "2.11.0"
3636
auto_route:
3737
dependency: "direct main"
3838
description:
@@ -125,10 +125,10 @@ packages:
125125
dependency: transitive
126126
description:
127127
name: characters
128-
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
128+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
129129
url: "https://pub.dev"
130130
source: hosted
131-
version: "1.2.1"
131+
version: "1.3.0"
132132
checked_yaml:
133133
dependency: transitive
134134
description:
@@ -157,10 +157,10 @@ packages:
157157
dependency: transitive
158158
description:
159159
name: collection
160-
sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0
160+
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
161161
url: "https://pub.dev"
162162
source: hosted
163-
version: "1.17.0"
163+
version: "1.17.2"
164164
convert:
165165
dependency: transitive
166166
description:
@@ -372,26 +372,26 @@ packages:
372372
dependency: transitive
373373
description:
374374
name: matcher
375-
sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72"
375+
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
376376
url: "https://pub.dev"
377377
source: hosted
378-
version: "0.12.13"
378+
version: "0.12.16"
379379
material_color_utilities:
380380
dependency: transitive
381381
description:
382382
name: material_color_utilities
383-
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
383+
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
384384
url: "https://pub.dev"
385385
source: hosted
386-
version: "0.2.0"
386+
version: "0.5.0"
387387
meta:
388388
dependency: transitive
389389
description:
390390
name: meta
391-
sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42"
391+
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
392392
url: "https://pub.dev"
393393
source: hosted
394-
version: "1.8.0"
394+
version: "1.9.1"
395395
mime:
396396
dependency: transitive
397397
description:
@@ -420,10 +420,10 @@ packages:
420420
dependency: transitive
421421
description:
422422
name: path
423-
sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b
423+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
424424
url: "https://pub.dev"
425425
source: hosted
426-
version: "1.8.2"
426+
version: "1.8.3"
427427
petitparser:
428428
dependency: transitive
429429
description:
@@ -505,10 +505,10 @@ packages:
505505
dependency: transitive
506506
description:
507507
name: source_span
508-
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
508+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
509509
url: "https://pub.dev"
510510
source: hosted
511-
version: "1.9.1"
511+
version: "1.10.0"
512512
stack_trace:
513513
dependency: transitive
514514
description:
@@ -561,10 +561,10 @@ packages:
561561
dependency: transitive
562562
description:
563563
name: test_api
564-
sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206
564+
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
565565
url: "https://pub.dev"
566566
source: hosted
567-
version: "0.4.16"
567+
version: "0.6.0"
568568
timing:
569569
dependency: transitive
570570
description:
@@ -597,6 +597,14 @@ packages:
597597
url: "https://pub.dev"
598598
source: hosted
599599
version: "1.0.2"
600+
web:
601+
dependency: transitive
602+
description:
603+
name: web
604+
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
605+
url: "https://pub.dev"
606+
source: hosted
607+
version: "0.1.4-beta"
600608
web_socket_channel:
601609
dependency: transitive
602610
description:
@@ -622,5 +630,5 @@ packages:
622630
source: hosted
623631
version: "3.1.1"
624632
sdks:
625-
dart: ">=2.19.1 <3.0.0"
633+
dart: ">=3.1.0-185.0.dev <4.0.0"
626634
flutter: ">=3.0.0"

0 commit comments

Comments
 (0)