From 548edd51d7c424570c9e567ae2dc383e2f90e7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20K=C3=B6rber?= <56073945+jakobkoerber@users.noreply.github.com> Date: Mon, 19 Jan 2026 10:21:10 +0100 Subject: [PATCH] feat: support strings in library barcode --- ios/Podfile.lock | 7 -- .../views/bar_code_view.dart | 2 +- pubspec.lock | 108 ++++++++++++------ 3 files changed, 71 insertions(+), 46 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 9c2ef8bc..9a5e9730 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -103,9 +103,6 @@ PODS: - nanopb/encode (3.30910.0) - package_info_plus (0.4.5): - Flutter - - path_provider_foundation (0.0.1): - - Flutter - - FlutterMacOS - permission_handler_apple (9.3.0): - Flutter - PromisesObjC (2.4.0) @@ -164,7 +161,6 @@ DEPENDENCIES: - map_launcher (from `.symlinks/plugins/map_launcher/ios`) - maplibre_gl (from `.symlinks/plugins/maplibre_gl/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) - quick_actions_ios (from `.symlinks/plugins/quick_actions_ios/ios`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) @@ -221,8 +217,6 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/maplibre_gl/ios" package_info_plus: :path: ".symlinks/plugins/package_info_plus/ios" - path_provider_foundation: - :path: ".symlinks/plugins/path_provider_foundation/darwin" permission_handler_apple: :path: ".symlinks/plugins/permission_handler_apple/ios" quick_actions_ios: @@ -267,7 +261,6 @@ SPEC CHECKSUMS: maplibre_gl: a2114567cbd1065866614fbd34dfb75ab782aaa2 nanopb: fad817b59e0457d11a5dfbde799381cd727c1275 package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499 - path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880 permission_handler_apple: 4ed2196e43d0651e8ff7ca3483a069d469701f2d PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851 diff --git a/lib/studentCardComponent/views/bar_code_view.dart b/lib/studentCardComponent/views/bar_code_view.dart index a64bfe28..ba655a6b 100644 --- a/lib/studentCardComponent/views/bar_code_view.dart +++ b/lib/studentCardComponent/views/bar_code_view.dart @@ -26,7 +26,7 @@ class BarCodeView extends StatelessWidget { height: 70, padding: const EdgeInsets.all(10), data: libraryID, - barcode: Barcode.code39(), + barcode: Barcode.code128(), drawText: false, ), ), diff --git a/pubspec.lock b/pubspec.lock index 4fb18447..38ef6ebe 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -93,10 +93,10 @@ packages: dependency: transitive description: name: build - sha256: c1668065e9ba04752570ad7e038288559d1e2ca5c6d0131c0f5f55e39e777413 + sha256: "275bf6bb2a00a9852c28d4e0b410da1d833a734d57d39d44f94bfc895a484ec3" url: "https://pub.dev" source: hosted - version: "4.0.3" + version: "4.0.4" build_config: dependency: transitive description: @@ -117,10 +117,10 @@ packages: dependency: "direct dev" description: name: build_runner - sha256: "110c56ef29b5eb367b4d17fc79375fa8c18a6cd7acd92c05bb3986c17a079057" + sha256: b4d854962a32fd9f8efc0b76f98214790b833af8b2e9b2df6bfc927c0415a072 url: "https://pub.dev" source: hosted - version: "2.10.4" + version: "2.10.5" built_collection: dependency: transitive description: @@ -133,10 +133,10 @@ packages: dependency: transitive description: name: built_value - sha256: "426cf75afdb23aa74bd4e471704de3f9393f3c7b04c1e2d9c6f1073ae0b8b139" + sha256: "7931c90b84bc573fef103548e354258ae4c9d28d140e41961df6843c5d60d4d8" url: "https://pub.dev" source: hosted - version: "8.12.1" + version: "8.12.3" cached_network_image: dependency: "direct main" description: @@ -209,6 +209,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.2" + code_assets: + dependency: transitive + description: + name: code_assets + sha256: ae0db647e668cbb295a3527f0938e4039e004c80099dce2f964102373f5ce0b5 + url: "https://pub.dev" + source: hosted + version: "0.19.10" code_builder: dependency: transitive description: @@ -309,18 +317,18 @@ packages: dependency: "direct main" description: name: drift - sha256: "3669e1b68d7bffb60192ac6ba9fd2c0306804d7a00e5879f6364c69ecde53a7f" + sha256: "5ea2f718558c0b31d4b8c36a3d8e5b7016f1265f46ceb5a5920e16117f0c0d6a" url: "https://pub.dev" source: hosted - version: "2.30.0" + version: "2.30.1" drift_dev: dependency: "direct dev" description: name: drift_dev - sha256: afe4d1d2cfce6606c86f11a6196e974a2ddbfaa992956ce61e054c9b1899c769 + sha256: "892dfb5d69d9e604bdcd102a9376de8b41768cf7be93fd26b63cfc4d8f91ad5f" url: "https://pub.dev" source: hosted - version: "2.30.0" + version: "2.30.1" easy_localization: dependency: "direct main" description: @@ -497,10 +505,10 @@ packages: dependency: "direct main" description: name: flutter_riverpod - sha256: "38ec6c303e2c83ee84512f5fc2a82ae311531021938e63d7137eccc107bf3c02" + sha256: a3cd0547353c1990bf5ad64f73143e5ce7a780409639559ad83a743ff3b945e4 url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.2.0" flutter_secure_storage: dependency: "direct main" description: @@ -720,6 +728,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.9.0" + hooks: + dependency: transitive + description: + name: hooks + sha256: "5410b9f4f6c9f01e8ff0eb81c9801ea13a3c3d39f8f0b1613cda08e27eab3c18" + url: "https://pub.dev" + source: hosted + version: "0.20.5" html: dependency: "direct main" description: @@ -916,10 +932,10 @@ packages: dependency: "direct overridden" description: name: meta - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" + sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349" url: "https://pub.dev" source: hosted - version: "1.17.0" + version: "1.18.0" mime: dependency: transitive description: @@ -928,6 +944,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.0" + native_toolchain_c: + dependency: transitive + description: + name: native_toolchain_c + sha256: f8872ea6c7a50ce08db9ae280ca2b8efdd973157ce462826c82f3c3051d154ce + url: "https://pub.dev" + source: hosted + version: "0.17.2" node_preamble: dependency: transitive description: @@ -936,6 +960,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.2" + objective_c: + dependency: transitive + description: + name: objective_c + sha256: "55eb67ede1002d9771b3f9264d2c9d30bc364f0267bc1c6cc0883280d5f0c7cb" + url: "https://pub.dev" + source: hosted + version: "9.2.2" octo_image: dependency: transitive description: @@ -1004,10 +1036,10 @@ packages: dependency: transitive description: name: path_provider_foundation - sha256: "6d13aece7b3f5c5a9731eaf553ff9dcbc2eff41087fd2df587fd0fed9a3eb0c4" + sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" url: "https://pub.dev" source: hosted - version: "2.5.1" + version: "2.6.0" path_provider_linux: dependency: transitive description: @@ -1196,10 +1228,10 @@ packages: dependency: transitive description: name: riverpod - sha256: "16ff608d21e8ea64364f2b7c049c94a02ab81668f78845862b6e88b71dd4935a" + sha256: "9026676260f31bb5279cc5e59ca292145d8bab4aabede9aa2555c2a626ec66f1" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.2.0" rxdart: dependency: "direct main" description: @@ -1313,10 +1345,10 @@ packages: dependency: transitive description: name: source_gen - sha256: "07b277b67e0096c45196cbddddf2d8c6ffc49342e88bf31d460ce04605ddac75" + sha256: "585bc140f20da42c584ece2df28f4d9ef2566955332b626f655957b3a8c8ad54" url: "https://pub.dev" source: hosted - version: "4.1.1" + version: "4.1.2" source_helper: dependency: transitive description: @@ -1409,10 +1441,10 @@ packages: dependency: transitive description: name: sqlparser - sha256: "162435ede92bcc793ea939fdc0452eef0a73d11f8ed053b58a89792fba749da5" + sha256: f52f5d5649dcc13ed198c4176ddef74bf6851c30f4f31603f1b37788695b93e2 url: "https://pub.dev" source: hosted - version: "0.42.1" + version: "0.43.0" stack_trace: dependency: transitive description: @@ -1457,42 +1489,42 @@ packages: dependency: "direct main" description: name: syncfusion_flutter_calendar - sha256: c2af1a3b2ca8c9f71f30904a89634138eb15d6ffd994623088d218958c969b5a + sha256: af27535ba4d3c6e64a318172c8a76363c174863b4e2583b21555c47be92c315d url: "https://pub.dev" source: hosted - version: "32.1.22" + version: "32.1.23" syncfusion_flutter_charts: dependency: "direct main" description: name: syncfusion_flutter_charts - sha256: "2a0bf92a9d582b18fcdfaa794a130f83b596ffcb3efc758ee96191e7f91373b7" + sha256: "15e2b3576d00a03c003f71cf2c98f0eb61777d15e1590f4e83dff0f8dc50b7d8" url: "https://pub.dev" source: hosted - version: "32.1.22" + version: "32.1.23" syncfusion_flutter_core: dependency: "direct main" description: name: syncfusion_flutter_core - sha256: "7363e3a7489c71874c624945d8dcbbe1e2486bb7bce7ee5b7693f14c00581f52" + sha256: c9446faa7a5cd8f6496357e41e8c4b24e158a8760222d32a5837abc35dd5d629 url: "https://pub.dev" source: hosted - version: "32.1.22" + version: "32.1.23" syncfusion_flutter_datepicker: dependency: "direct main" description: name: syncfusion_flutter_datepicker - sha256: "4a910c5135ef60d35310dd6c4bb452b99bb8853789963826c96f05e7f03d8cf6" + sha256: "30514aa392b569fbd1a11dc402a21b0c24ece05ce8f8f90aee7bfa92de99ed1e" url: "https://pub.dev" source: hosted - version: "32.1.22" + version: "32.1.23" syncfusion_localizations: dependency: transitive description: name: syncfusion_localizations - sha256: c564865c6a6637b1f30a477800c053f86fe4aa568b4dec607fe2ae53c3e1578e + sha256: ad27e3bfc98d079c0a19b818f240ed406e90eaf770bc7ad527319700f4ae2cac url: "https://pub.dev" source: hosted - version: "32.1.22" + version: "32.1.23" synchronized: dependency: transitive description: @@ -1617,10 +1649,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2" + sha256: d0412fcf4c6b31ecfdb7762359b7206ffba3bbffd396c6d9f9c4616ece476c1f url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.2" url_launcher_windows: dependency: transitive description: @@ -1689,10 +1721,10 @@ packages: dependency: transitive description: name: video_player_avfoundation - sha256: d1eb970495a76abb35e5fa93ee3c58bd76fb6839e2ddf2fbb636674f2b971dd4 + sha256: "2a7aaf2f28212c285e0fb29b50728bbea513d743dd48d3024098015f169fb937" url: "https://pub.dev" source: hosted - version: "2.8.9" + version: "2.8.10" video_player_platform_interface: dependency: transitive description: @@ -1807,5 +1839,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.10.0 <4.0.0" - flutter: ">=3.35.1" + dart: ">=3.10.3 <4.0.0" + flutter: ">=3.38.4"