Responsive constructor

Responsive({
  1. double fontSizeRelativeToScreen = 2.5,
  2. double maxFontSize = 16,
  3. double iconsSizeRelativeToScreen = 7,
  4. double maxIconsSize = 60,
  5. double buttonsSizeRelativeToScreen = 8,
  6. double maxButtonsSize = 60,
})

Creates a new Responsive instance.

The optional parameters fontSizeRelativeToScreen, iconsSizeRelativeToScreen, and buttonsSizeRelativeToScreen specify the relative size of fonts, icons, and buttons, respectively, as a percentage of the screen size. The optional parameters maxFontSize, maxIconsSize, and maxButtonsSize specify the maximum size of fonts, icons, and buttons, respectively.

Implementation

Responsive({
  this.fontSizeRelativeToScreen = 2.5,
  this.maxFontSize = 16,
  this.iconsSizeRelativeToScreen = 7,
  this.maxIconsSize = 60,
  this.buttonsSizeRelativeToScreen = 8,
  this.maxButtonsSize = 60,
});