Skip to content
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

Merged
merged 33 commits into from Sep 5, 2019
Merged

Conversation

lisa-liao
Copy link

No description provided.

@johnpryan johnpryan self-requested a review September 3, 2019 20:32
Copy link
Contributor

@RedBrogdon RedBrogdon left a 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.


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
Copy link
Contributor

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.

Copy link
Author

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) {
Copy link
Contributor

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.

Copy link
Author

Choose a reason for hiding this comment

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

Done

material_studies/rally/lib/charts/pie_chart.dart Outdated Show resolved Hide resolved
),
),
ListView(shrinkWrap: true, children: financialEntityCards)
]);
Copy link
Contributor

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.

Copy link
Author

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) {
Copy link
Contributor

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...).

Copy link
Author

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>[
Copy link
Contributor

Choose a reason for hiding this comment

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

Unnecessary <Widget>.

Copy link
Author

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);
Copy link
Contributor

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.

Copy link
Author

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);
Copy link
Contributor

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.

Copy link
Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

Inline.

Copy link
Author

Choose a reason for hiding this comment

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

Done

@johnpryan johnpryan removed their request for review September 4, 2019 19:09
@lisa-liao lisa-liao changed the title Adding Rally App to Samples Adding Rally App to Flutter Samples Sep 4, 2019
@RedBrogdon RedBrogdon merged commit c056b75 into flutter:master Sep 5, 2019
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.

None yet

2 participants