Rename constant
This commit is contained in:
parent
09e8dfd64d
commit
bd34571513
2 changed files with 3 additions and 3 deletions
|
@ -56,4 +56,4 @@ const double restrictedMaxWidth = 430;
|
|||
|
||||
const double mobileSmallThreshold = 336;
|
||||
|
||||
const deviceLimits = [50, 25, 10, 5, 2, 1];
|
||||
const publicLinkDeviceLimits = [50, 25, 10, 5, 2, 1];
|
||||
|
|
|
@ -79,7 +79,7 @@ class _ItemsWidgetState extends State<ItemsWidget> {
|
|||
void initState() {
|
||||
currentDeviceLimit = widget.collection.publicURLs!.first!.deviceLimit;
|
||||
initialDeviceLimit = currentDeviceLimit;
|
||||
if (!deviceLimits.contains(currentDeviceLimit)) {
|
||||
if (!publicLinkDeviceLimits.contains(currentDeviceLimit)) {
|
||||
isCustomLimit = true;
|
||||
}
|
||||
super.initState();
|
||||
|
@ -93,7 +93,7 @@ class _ItemsWidgetState extends State<ItemsWidget> {
|
|||
_menuItemForPicker(initialDeviceLimit),
|
||||
);
|
||||
}
|
||||
for (int deviceLimit in deviceLimits) {
|
||||
for (int deviceLimit in publicLinkDeviceLimits) {
|
||||
items.add(
|
||||
_menuItemForPicker(deviceLimit),
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue