Conversation
|
Here's my review of PR #385: Toaster! OverviewThis PR introduces a new toaster notification system to replace the existing snackbar pattern in v2 screens. It adds a Issues1. DRY Violation:
|
|
Ok Delete snackbar_helper. We can just use the new one everywhere. Make icon non-optional - user must intentionally set icon - we can make a special factor constructor for copy, since we use that everywhere. ... actually we already have showCopyToaster Ignore my whitespace complaints, it seems to be wrong in the v3 branch |
PR #385 Re-Review: Toaster!Great work on the updates -- the major issues from the first review have been addressed. Here's where things stand now. Issues Resolved
Remaining Items1. Missing extension ClipboardWithToasterExtensions on BuildContext {
Future<void> copyTextWithToaster(String text, {String message = 'Address copied to clipboard'}) async {
await Clipboard.setData(ClipboardData(text: text));
showCopyToaster(message: message);
}
}
2. The final Widget displayIcon = Icon(icon.icon, color: icon.color, size: context.isTablet ? 20 : 16);This silently discards any other properties set on the passed 3. Overall VerdictThis is looking really good now. The migration is thorough, the old snackbar system is fully removed, and the new toaster API is clean and consistent. The only actionable item is the missing |
|
* feat: create new auth wrapper * fix: code formatting * feat: remove old auth wrapper, rename new auth wrapper to lock screen * feat: revert name back to auth wrapper, add button to trigger authentication * feat: use the unfilled button style
Summary
Create toaster component and its' helpers. Also added extensions for easy usage.
Screenshots