-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add account balance widget #11
Conversation
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 20.0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add some constants for these at some point so we don't have to duplicate this 20.0
everywhere in a future PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -24,12 +24,13 @@ const lightColorScheme = ColorScheme( | |||
onSurface: Color(0xff000000), | |||
surfaceVariant: Color(0xffFFE8DE), | |||
onSurfaceVariant: Color(0xff212121), | |||
outline: Color(0xff79747E), | |||
outline: Color(0xff333333), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice! Do we need to update these for darkColorScheme
too? Or are those ok already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they looked ok but we may want to do a more thorough pass over this entire file later :)
testWidgets('should show SendPage when tapped', (WidgetTester tester) async { | ||
await tester.pumpWidget( | ||
WidgetHelpers.testableWidget(child: const AppTabs()), | ||
); | ||
|
||
await tester.tap(find.text('Send')); | ||
await tester.pumpAndSettle(); | ||
expect(find.byType(SendPage), findsOneWidget); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could a test for the AccountBalance
too if you wanna
Implemented account balance widget containing the balance, and buttons to deposit and withdraw.
SendPage
was moved to its own tab inAppTabs