Skip to content

Modify the wording to avoid misreading #50

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

Merged
merged 2 commits into from
May 27, 2020
Merged

Modify the wording to avoid misreading #50

merged 2 commits into from
May 27, 2020

Conversation

EightMinuteYouth
Copy link
Contributor

No description provided.

@@ -236,7 +232,7 @@ class _OrderListScreenState extends State<OrderListScreen> {
},
),
floatingActionButton: Consumer<OrderProvider>(
builder: (context, OrderProvider provider, child) {
builder: (BuildContext _, OrderProvider provider, Widget __) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里不传的话还是直接 _ 就好

@@ -211,22 +208,21 @@ class _OrderListScreenState extends State<OrderListScreen> {
value: _provider,
child: Scaffold(
body: Selector<OrderProvider, List<Order>>(
selector: (context, provider) => provider.orderList,
builder: (context, provider, child) {
selector: (BuildContext _, OrderProvider provider) => provider.orderList,
Copy link
Collaborator

Choose a reason for hiding this comment

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

直接 _

@@ -95,8 +95,7 @@ class SecondScreen extends StatelessWidget {
),
SizedBox(height: 20),
Consumer<CounterModel>(
builder: (context, CounterModel counter, child) =>
FloatingActionButton(
builder: (context, CounterModel counter, child) => FloatingActionButton(
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里是 dartfmt 了吗

@Vadaski Vadaski merged commit a6e46f3 into OpenFlutter:master May 27, 2020
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