Skip to content

Improved 'Check for updates' button#51

Merged
techno-disaster merged 4 commits intoCCExtractor:masterfrom
lilmistake:patch-1
Apr 3, 2023
Merged

Improved 'Check for updates' button#51
techno-disaster merged 4 commits intoCCExtractor:masterfrom
lilmistake:patch-1

Conversation

@lilmistake
Copy link
Copy Markdown
Contributor

*fixes overflow in navigation rail by making it scrollable

Before After
Screenshot 2023-03-30 102838 Screenshot 2023-03-30 102807

Placed the 'check for updates' button in the header instead of the footer to better incorporate changes I made in techno-disaster/navigation_rail#1
);
}

Widget _checkForUpdates(ProcessState state) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick, can you make this a Stateless widget rather than a function returning a widget?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, added it!

Converted the `_checkForUpdates` local method to a private Stateless Widget `_CheckForUpdates`
builder: (context, state) {
return Column(
children: [_checkForUpdates(state)],
children: [_CheckForUpdatesButton(state: state)],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just move the whole BlocBuilder to the widget? since only that needs the state. Also probably don't need a column?

builder: (context, state) {
return Column(
children: [_checkForUpdates(state)],
children: [_CheckForUpdatesButton(state: state)],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just move the whole BlocBuilder to the widget? since only that needs the state. Also probably don't need a column?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops overlooked that, updated it now

removed redundant code
import_sorter fix
@techno-disaster techno-disaster merged commit 0dad21f into CCExtractor:master Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants