mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 15:28:44 +00:00
Landing beta changes in master for the new stable release (#747)
This commit is contained in:
@@ -12,9 +12,9 @@ class Item {
|
||||
final String name;
|
||||
|
||||
Item({
|
||||
@required this.color,
|
||||
@required this.name,
|
||||
@required this.price,
|
||||
required this.color,
|
||||
required this.name,
|
||||
required this.price,
|
||||
});
|
||||
|
||||
Item.loading() : this(color: Colors.grey, name: '...', price: 0);
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
import 'item.dart';
|
||||
|
||||
const int itemsPerPage = 20;
|
||||
@@ -17,8 +14,8 @@ class ItemPage {
|
||||
final bool hasNext;
|
||||
|
||||
ItemPage({
|
||||
@required this.items,
|
||||
@required this.startingIndex,
|
||||
@required this.hasNext,
|
||||
required this.items,
|
||||
required this.startingIndex,
|
||||
required this.hasNext,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user