mirror of
https://github.com/foss42/apidash.git
synced 2025-05-22 16:57:07 +08:00
17 lines
401 B
Dart
17 lines
401 B
Dart
bool showButtonLabelsInBodySuccess(int options, double maxWidth) {
|
|
switch (options) {
|
|
case 1:
|
|
return (maxWidth < 300) ? false : true;
|
|
case 2:
|
|
return (maxWidth < 400) ? false : true;
|
|
case 3:
|
|
return (maxWidth < 500) ? false : true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
bool showButtonLabelsInViewCodePane(double maxWidth) {
|
|
return (maxWidth < 400) ? false : true;
|
|
}
|