Skip to content

Commit

Permalink
chore(flutter_github_search): update styles for material 3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Nov 24, 2023
1 parent cce8d38 commit b40cd4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _SearchBody extends StatelessWidget {
builder: (context, state) {
return switch (state) {
SearchStateEmpty() => const Text('Please enter a term to begin'),
SearchStateLoading() => const CircularProgressIndicator(),
SearchStateLoading() => const CircularProgressIndicator.adaptive(),
SearchStateError() => Text(state.error),
SearchStateSuccess() => state.items.isEmpty
? const Text('No Results')
Expand Down Expand Up @@ -112,12 +112,7 @@ class _SearchResultItem extends StatelessWidget {
child: Image.network(item.owner.avatarUrl),
),
title: Text(item.fullName),
onTap: () async {
final uri = Uri.parse(item.htmlUrl);
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
}
},
onTap: () => launchUrl(Uri.parse(item.htmlUrl)),
);
}
}

0 comments on commit b40cd4f

Please sign in to comment.