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
Adding Rally App to Flutter Samples #135
Conversation
Updating README file
Adding Basic Rally App
Adding Rally Pages
Rally Fonts and Charts
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.
Almost ready. There's always a few last nits at this stage, though.
material_studies/rally/README.md
Outdated
|
|
||
| For info on the Rally Material Study, see: https://material.io/design/material-studies/rally.html | ||
|
|
||
| **This sample is not currently in a finished state. We're in the process |
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.
I think you can take this out now.
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.
Done
| } | ||
| } | ||
|
|
||
| void _drawXAxisLabels(Canvas canvas, Rect rect) { |
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.
This method could use a one-line comment like the one above.
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.
Done
| ), | ||
| ), | ||
| ListView(shrinkWrap: true, children: financialEntityCards) | ||
| ]); |
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.
nit: Separate with a comma for formatting.
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.
Done
| ); | ||
| } | ||
|
|
||
| FinancialEntityCategoryView fromAccountItem(AccountData model, int i) { |
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.
These three methods need to be renamed similar to the ones below (build...).
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.
Done
| }, | ||
| child: ListView( | ||
| padding: EdgeInsets.symmetric(horizontal: 24), | ||
| children: <Widget>[ |
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.
Unnecessary <Widget>.
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.
Done
| @override | ||
| Widget build(BuildContext context) { | ||
| double balanceTotal = sumAccountDataPrimaryAmount(items); | ||
| List<RallyPieChartSegment> segments = fromAccountItems(items); |
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.
This local doesn't need to exist. It can just be inlined on line 33.
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.
Done
| @override | ||
| Widget build(BuildContext context) { | ||
| double dueTotal = sumBillDataPrimaryAmount(items); | ||
| List<RallyPieChartSegment> segments = fromBillItems(items); |
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.
Similarly to the comment above, this can just be inlined.
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.
Done
| Widget build(BuildContext context) { | ||
| double capTotal = sumBudgetDataPrimaryAmount(items); | ||
| double usedTotal = sumBudgetDataAmountUsed(items); | ||
| List<RallyPieChartSegment> segments = fromBudgetItems(items); |
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.
Inline.
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.
Done
No description provided.