diff --git a/pub_stats/lib/view/screen/alerts_manager.dart b/pub_stats/lib/view/screen/alerts_manager.dart index 04c6e65..1660f57 100644 --- a/pub_stats/lib/view/screen/alerts_manager.dart +++ b/pub_stats/lib/view/screen/alerts_manager.dart @@ -39,9 +39,11 @@ class AlertsManager extends StatelessWidget { ], itemBuilder: (context, suggestion) => ListTile(title: Text(suggestion)), - onSuggestionSelected: (suggestion) {}, - textFieldConfiguration: TextFieldConfiguration( - controller: slugController, + onSelected: (suggestion) {}, + controller: slugController, + builder: (context, controller, node) => TextField( + controller: controller, + focusNode: node, decoration: const InputDecoration( border: OutlineInputBorder(), hintText: 'Alert slug', diff --git a/pub_stats/lib/view/widget/sticky_header.dart b/pub_stats/lib/view/widget/sticky_header.dart index b302690..cd25d1c 100644 --- a/pub_stats/lib/view/widget/sticky_header.dart +++ b/pub_stats/lib/view/widget/sticky_header.dart @@ -69,8 +69,9 @@ class StickyHeader extends SliverPersistentHeaderDelegate { const SizedBox(width: 16), Expanded( child: TypeAheadField( - textFieldConfiguration: TextFieldConfiguration( - controller: _textController, + builder: (context, controller, node) => TextField( + controller: controller, + focusNode: node, autofocus: true, autocorrect: false, textCapitalization: TextCapitalization.none, @@ -85,10 +86,10 @@ class StickyHeader extends SliverPersistentHeaderDelegate { ), suggestionsCallback: (pattern) { if (pattern.isEmpty) return []; - return { + return [ pattern, ..._dataController.complete(pattern), - }; + ]; }, itemBuilder: (context, suggestion) => ListTile( title: Text(suggestion), @@ -102,14 +103,14 @@ class StickyHeader extends SliverPersistentHeaderDelegate { child: const Text('Compare'), ), ), - noItemsFoundBuilder: (context) => + emptyBuilder: (context) => const ListTile(title: Text('No packages found')), errorBuilder: (context, error) { _logger.e(error); return const ListTile(title: Text('Error searching packages')); }, debounceDuration: Duration.zero, - onSuggestionSelected: _submit, + onSelected: _submit, ), ), const SizedBox(width: 16), diff --git a/pub_stats/pubspec.lock b/pub_stats/pubspec.lock index 85b21c5..e070b4c 100644 --- a/pub_stats/pubspec.lock +++ b/pub_stats/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: _flutterfire_internals - sha256: "8942974ee5dc932427704ede5e0db8b5f2b8f22172964544b56e6bd37f6c3634" + sha256: eb0ac20f704799b986049fbb3c1c16421eca319a1b872378d669513e12452ba5 url: "https://pub.dev" source: hosted - version: "1.3.12" + version: "1.3.14" ansicolor: dependency: transitive description: @@ -173,82 +173,82 @@ packages: dependency: "direct main" description: name: firebase_analytics - sha256: "624f234b0cb27c4d1c983d03489570471d85d5720159512c8e080cb6917a0a2b" + sha256: "6325991042226a515406b4fc9204d3102e54a514b72fffb945b625d9f69c5196" url: "https://pub.dev" source: hosted - version: "10.7.0" + version: "10.7.2" firebase_analytics_platform_interface: dependency: transitive description: name: firebase_analytics_platform_interface - sha256: "7e6cae535f3f2ab19ddb183ed48010f852baa20999a473b764c3db4e73d3fa0b" + sha256: "38ad4bec1fa0fe16577e6f178e4c4280f029181b18e16bf68782c527c7d82bfe" url: "https://pub.dev" source: hosted - version: "3.8.0" + version: "3.8.2" firebase_analytics_web: dependency: transitive description: name: firebase_analytics_web - sha256: ff080e7793ab71f73fb4cb5223922638024144c1deecb3ec71c81e69f64409df + sha256: "6c0deb691a26db2006ded65fd8999a204dcfe8ef67d7d75b7f55ebc08e1d89a4" url: "https://pub.dev" source: hosted - version: "0.5.5+7" + version: "0.5.5+9" firebase_app_check: dependency: "direct main" description: name: firebase_app_check - sha256: "5895a494e3f07d896455f978152a505517edda0aec961e93007c9efc2a05d889" + sha256: "9fc379021d638213d62709edab6c46d9a382fe322eea645479fabb7008eed0a8" url: "https://pub.dev" source: hosted - version: "0.2.1+4" + version: "0.2.1+6" firebase_app_check_platform_interface: dependency: transitive description: name: firebase_app_check_platform_interface - sha256: "7ed0f8ddafb8be4d0f4b4df86fb8fb925f4c52b15c6da83862b662df88cbe0bb" + sha256: "474ac94b4048e26467474bf8dab24f7e0b51c1aff6b005e1539e95e9242ea03b" url: "https://pub.dev" source: hosted - version: "0.1.0+6" + version: "0.1.0+8" firebase_app_check_web: dependency: transitive description: name: firebase_app_check_web - sha256: "1009588dbee991caf218d4ef992d9472758472870b13726da826fb7856919cfb" + sha256: "288b5f5652b5fb81f8183a44e39d31d97ce8867a1becd42983dd45f9c787c231" url: "https://pub.dev" source: hosted - version: "0.1.0+6" + version: "0.1.0+8" firebase_auth: dependency: "direct main" description: name: firebase_auth - sha256: a9281f9b149ad4cffbfe91725ee5159c63aca2f27c05e2e87052fc240abe212c + sha256: "869ff488c7b467e273d7be223f52d3d026576b6e1da92dcd136ff627ae0a8c67" url: "https://pub.dev" source: hosted - version: "4.14.0" + version: "4.15.0" firebase_auth_platform_interface: dependency: transitive description: name: firebase_auth_platform_interface - sha256: def138b34bb97310ff748d1864f3ccd5b49d7424f35825f0df5455f16218ba99 + sha256: ecf9f78ae1a7a1297de01ec975e9e2cfe5b543589b27cc5969849d9a8dc46999 url: "https://pub.dev" source: hosted - version: "7.0.4" + version: "7.0.6" firebase_auth_web: dependency: transitive description: name: firebase_auth_web - sha256: e5fbb3453fbfff0dd8dfed5e3560248391f76a4c59ae9b331704e3443cffde77 + sha256: "96f89e2340cdf373109cb29afec401c170aa2d98fb0833687793c8017e36f435" url: "https://pub.dev" source: hosted - version: "5.8.7" + version: "5.8.9" firebase_core: dependency: "direct main" description: name: firebase_core - sha256: "45f3f9babfc6f56fb94c3cd11584cf3c9672868228373b699b94427010e01dc3" + sha256: d301561d614487688d797717bef013a264c517d1d09e4c5c1325c3a64c835efb url: "https://pub.dev" source: hosted - version: "2.22.0" + version: "2.24.0" firebase_core_platform_interface: dependency: transitive description: @@ -261,58 +261,58 @@ packages: dependency: transitive description: name: firebase_core_web - sha256: "0631a2ec971dbc540275e2fa00c3a8a2676f0a7adbc3c197d6fba569db689d97" + sha256: "10159d9ee42c79f4548971d92f3f0fcd5791f6738cda3583a4e3b2c8b244c018" url: "https://pub.dev" source: hosted - version: "2.8.1" + version: "2.9.0" firebase_database: dependency: "direct main" description: name: firebase_database - sha256: "5fa3f8e9b9094083642b74173bacf33e878f79b49b34c84818d2564337ed9982" + sha256: "373b54cc0a890f4f1547380d31232a718aa5e4ded1a8819e6c4709d7df8286e6" url: "https://pub.dev" source: hosted - version: "10.3.4" + version: "10.3.6" firebase_database_platform_interface: dependency: transitive description: name: firebase_database_platform_interface - sha256: "5f877b1dd95a83eff8b5646f3218a1b4e6ce7c1c8ad3e125632d11e2257e4865" + sha256: "2e3edb4552848585aa0031c0d493699305b40da756ebe507686ca6bbe96369eb" url: "https://pub.dev" source: hosted - version: "0.2.5+12" + version: "0.2.5+14" firebase_database_web: dependency: transitive description: name: firebase_database_web - sha256: "0bb137e196dbdb16e27c0f5d529b24a277ae97588daac833519276406d0e7580" + sha256: "55ec085db984291668c232d8760b82c86c33f5e4a459721a2df0438c2ece5859" url: "https://pub.dev" source: hosted - version: "0.2.3+12" + version: "0.2.3+14" firebase_performance: dependency: "direct main" description: name: firebase_performance - sha256: "163ab67631f33089b1a5298e7c9fdafac64ee1e5e0cfb5ade8a2057148feac63" + sha256: "7c217473dee69614882530520236b885b2584ac1adeead3a64f6eb33a1d7c207" url: "https://pub.dev" source: hosted - version: "0.9.3+4" + version: "0.9.3+6" firebase_performance_platform_interface: dependency: transitive description: name: firebase_performance_platform_interface - sha256: a1686d079238cbd677797f17528b1bfc79adaaf6cdb0fa41e65c0d0a21284274 + sha256: "092b698b33cfd805f4e34d87d39f835f9060f13faceac1b77330d0739b1fd44f" url: "https://pub.dev" source: hosted - version: "0.1.4+12" + version: "0.1.4+14" firebase_performance_web: dependency: transitive description: name: firebase_performance_web - sha256: a230d1dcf22a3f5d5096c044f583cb9d7ef661994bf9c507529106117c57e65d + sha256: bbf1adeb2fc27cc6ae21b9f616340bb751129bfc8cf0e7ca2633797f93806f9f url: "https://pub.dev" source: hosted - version: "0.1.4+12" + version: "0.1.4+14" firebase_ui_database: dependency: "direct main" description: @@ -334,10 +334,10 @@ packages: dependency: "direct main" description: name: fl_chart - sha256: "6b9eb2b3017241d05c482c01f668dd05cc909ec9a0114fdd49acd958ff2432fa" + sha256: "5a74434cc83bf64346efb562f1a06eefaf1bcb530dc3d96a104f631a1eff8d79" url: "https://pub.dev" source: hosted - version: "0.64.0" + version: "0.65.0" flutter: dependency: "direct main" description: flutter @@ -429,10 +429,10 @@ packages: dependency: "direct main" description: name: flutter_typeahead - sha256: b9942bd5b7611a6ec3f0730c477146cffa4cd4b051077983ba67ddfc9e7ee818 + sha256: "1f6b248bb4f3ebb4cf1ee0354aa23c77be457fb2d26d6847ecc33a917f65e58e" url: "https://pub.dev" source: hosted - version: "4.8.0" + version: "5.0.1" flutter_web_plugins: dependency: "direct main" description: flutter @@ -482,10 +482,10 @@ packages: dependency: transitive description: name: http - sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" + sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139 url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.2" http_parser: dependency: transitive description: @@ -594,10 +594,10 @@ packages: dependency: transitive description: name: petitparser - sha256: eeb2d1428ee7f4170e2bd498827296a18d4e7fc462b71727d111c0ac7707cfa6 + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 url: "https://pub.dev" source: hosted - version: "6.0.1" + version: "6.0.2" plugin_platform_interface: dependency: transitive description: @@ -815,10 +815,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" + sha256: "138bd45b3a456dcfafc46d1a146787424f8d2edfbf2809c9324361e58f851cf7" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.1" url_launcher_windows: dependency: transitive description: @@ -871,10 +871,10 @@ packages: dependency: transitive description: name: xml - sha256: af5e77e9b83f2f4adc5d3f0a4ece1c7f45a2467b695c2540381bac793e34e556 + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 url: "https://pub.dev" source: hosted - version: "6.4.2" + version: "6.5.0" yaml: dependency: transitive description: @@ -884,5 +884,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.2.0-194.0.dev <4.0.0" - flutter: ">=3.13.0" + dart: ">=3.2.0 <4.0.0" + flutter: ">=3.16.0" diff --git a/pub_stats/pubspec.yaml b/pub_stats/pubspec.yaml index 72b221c..7a8c8cc 100644 --- a/pub_stats/pubspec.yaml +++ b/pub_stats/pubspec.yaml @@ -18,10 +18,10 @@ dependencies: get_time_ago: ^1.1.1 font_awesome_flutter: ^10.0.0-beta url_launcher: ^6.0.17 - fl_chart: ^0.64.0 + fl_chart: ^0.65.0 flutter_svg: ^2.0.0+1 pub_api_client: ^2.2.0 - flutter_typeahead: ^4.3.3 + flutter_typeahead: ^5.0.1 pub_stats_core: path: ../pub_stats_core diff --git a/pub_stats_collector/pubspec.lock b/pub_stats_collector/pubspec.lock index e838c7d..ed741e2 100644 --- a/pub_stats_collector/pubspec.lock +++ b/pub_stats_collector/pubspec.lock @@ -85,10 +85,10 @@ packages: dependency: transitive description: name: dio - sha256: "417e2a6f9d83ab396ec38ff4ea5da6c254da71e4db765ad737a42af6930140b7" + sha256: "797e1e341c3dd2f69f2dad42564a6feff3bfb87187d05abb93b9609e6f1645c3" url: "https://pub.dev" source: hosted - version: "5.3.3" + version: "5.4.0" dio_response_validator: dependency: transitive description: @@ -206,10 +206,10 @@ packages: dependency: transitive description: name: http - sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" + sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139 url: "https://pub.dev" source: hosted - version: "1.1.0" + version: "1.1.2" http_methods: dependency: transitive description: @@ -318,10 +318,10 @@ packages: dependency: transitive description: name: petitparser - sha256: eeb2d1428ee7f4170e2bd498827296a18d4e7fc462b71727d111c0ac7707cfa6 + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 url: "https://pub.dev" source: hosted - version: "6.0.1" + version: "6.0.2" pinenacl: dependency: transitive description: @@ -530,6 +530,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.2.1" + web: + dependency: transitive + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" web_socket_channel: dependency: transitive description: @@ -555,4 +563,4 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.0.0 <4.0.0" + dart: ">=3.2.0 <4.0.0"