init static method
void
init({})
Configure library-wide design sizes.
mobileDesignSize — the design canvas size (portrait) for phones.
tabletDesignSize — the design canvas size (portrait) for tablets.
Both sizes should be given in portrait orientation; landscape variants are computed automatically by transposing width and height.
Implementation
static void init({
Size mobileDesignSize = const Size(402, 874),
Size tabletDesignSize = const Size(768, 1024),
}) {
_mobileDesignSize = mobileDesignSize;
_tabletDesignSize = tabletDesignSize;
}