Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias committed Jun 15, 2021
2 parents 7cbecb3 + e8496c1 commit 85c4fde
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
"contributions": [
"a11y"
]
},
{
"login": "arthurdenner",
"name": "Arthur Denner",
"avatar_url": "https://avatars.githubusercontent.com/u/13774309?v=4",
"profile": "https://linktr.ee/arthurdenner",
"contributions": [
"bug"
]
}
],
"contributorsPerLine": 7,
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Flutter Sidekick

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

Sidekick is an app that provides a simple desktop interface to tools that enhance Flutter development experience to make it even more delightful.
Expand Down Expand Up @@ -35,6 +35,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="http://technodisaster.wtf"><img src="https://avatars.githubusercontent.com/u/52817235?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Jayesh Nirve</b></sub></a><br /><a href="#maintenance-Techno-Disaster" title="Maintenance">🚧</a></td>
<td align="center"><a href="https://youtube.com/c/PaulHalliday"><img src="https://avatars.githubusercontent.com/u/19576417?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Paul Halliday</b></sub></a><br /><a href="https://github.com/leoafarias/sidekick/commits?author=PaulHalliday" title="Code">💻</a> <a href="https://github.com/leoafarias/sidekick/issues?q=author%3APaulHalliday" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/anticafe"><img src="https://avatars.githubusercontent.com/u/340836?v=4?s=50" width="50px;" alt=""/><br /><sub><b>anticafe</b></sub></a><br /><a href="#a11y-anticafe" title="Accessibility">️️️️♿️</a></td>
<td align="center"><a href="https://linktr.ee/arthurdenner"><img src="https://avatars.githubusercontent.com/u/13774309?v=4?s=50" width="50px;" alt=""/><br /><sub><b>Arthur Denner</b></sub></a><br /><a href="https://github.com/leoafarias/sidekick/issues?q=author%3Aarthurdenner" title="Bug reports">🐛</a></td>
</tr>
</table>

Expand Down
3 changes: 1 addition & 2 deletions lib/src/components/organisms/info_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class SelectedDetailDrawer extends HookWidget {
@override
Widget build(BuildContext context) {
final detail = useProvider(selectedDetailProvider).state;

final selected = detail.release;
final selected = detail?.release;

void onClose() {
// Close drawer if its not large layout
Expand Down
2 changes: 1 addition & 1 deletion lib/src/modules/common/app_shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AppShell extends HookWidget {
useValueChanged(selectedInfo, (_, __) {
if (_scaffoldKey.currentState == null) return;
final isOpen = _scaffoldKey.currentState.isEndDrawerOpen;
final hasInfo = selectedInfo.release != null;
final hasInfo = selectedInfo?.release != null;

// Open drawer if not large layout and its not open
if (hasInfo && !isOpen) {
Expand Down

0 comments on commit 85c4fde

Please sign in to comment.