mirror of
https://github.com/foss42/apidash.git
synced 2025-05-24 01:36:46 +08:00
19 lines
432 B
Dart
19 lines
432 B
Dart
bool showButtonLabelsInBodySuccess(int options, double maxWidth) {
|
|
switch (options) {
|
|
case 0:
|
|
return true;
|
|
case 1:
|
|
return (maxWidth < 300) ? false : true;
|
|
case 2:
|
|
return (maxWidth < 430) ? false : true;
|
|
case 3:
|
|
return (maxWidth < 500) ? false : true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
bool showButtonLabelsInViewCodePane(double maxWidth) {
|
|
return (maxWidth < 450) ? false : true;
|
|
}
|