Skip to content

Commit

Permalink
Updates for new search anchor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Nov 13, 2024
1 parent 7e1da0a commit 4a0038a
Show file tree
Hide file tree
Showing 11 changed files with 580 additions and 237 deletions.
2 changes: 1 addition & 1 deletion pub_stats/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:rexios_lints/flutter/core.yaml
include: package:rexios_lints/flutter/core_extra.yaml
2 changes: 1 addition & 1 deletion pub_stats/lib/service/url_service/url_service_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class UrlServiceImpl extends UrlService {
UrlServiceImpl() {
web.window.addEventListener(
'hashchange',
((event) => _uriController.add(uri)).toJS,
(() => _uriController.add(uri)).toJS,
);
}

Expand Down
5 changes: 2 additions & 3 deletions pub_stats/lib/view/screen/alerts_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ class AlertsManager extends StatelessWidget {
Expanded(
child: SearchAnchor.bar(
viewConstraints: const BoxConstraints(),
viewBarPadding: const WidgetStatePropertyAll(
EdgeInsets.symmetric(horizontal: 16),
),
viewBarPadding: const EdgeInsets.symmetric(horizontal: 16),
shrinkWrap: true,
barLeading: const SizedBox.shrink(),
viewLeading: const SizedBox.shrink(),
viewTrailing: const [],
Expand Down
4 changes: 2 additions & 2 deletions pub_stats/lib/view/widget/sticky_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ class StickyHeader extends SliverPersistentHeaderDelegate {
viewPadding: const EdgeInsets.only(bottom: 32),
barLeading: leading,
viewLeading: leading,
viewBarPadding:
const WidgetStatePropertyAll(EdgeInsets.symmetric(horizontal: 16)),
viewBarPadding: const EdgeInsets.symmetric(horizontal: 16),
shrinkWrap: true,
searchController: _searchController,
barHintText: 'Enter a package name',
onSubmitted: _submit,
Expand Down
Loading

0 comments on commit 4a0038a

Please sign in to comment.