Rename constant

This commit is contained in:
ashilkn 2023-02-03 15:39:33 +05:30
parent 09e8dfd64d
commit bd34571513
2 changed files with 3 additions and 3 deletions

View file

@ -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];

View file

@ -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),
);