bootstrapPrefixBasedOnWidth function
Returns the definition prefix, based on the available width
Implementation
String bootstrapPrefixBasedOnWidth(double width) {
String pfx = "";
if (width > 1200) {
return "xl";
}
if (width > 992) {
return "lg";
}
if (width > 767) {
return "md";
}
if (width > 575) {
return "sm";
}
return pfx;
}