UdDesign class
UdDesign will help you making responsive application in many ways!
Constructors
- UdDesign()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- deviceType ↔ UdDeviceType?
-
getter/setter pair
- orientation ↔ Orientation?
-
getter/setter pair
- screenHeight ↔ double
-
getter/setter pair
- screenWidth ↔ double
-
getter/setter pair
Static Methods
-
blocksXaxis(
double blocks) → double -
For responsiveness you can use this function by passing how much screen portion you want to use in horizontal (X) axis in the range of
0% - 100%
. -
blocksYaxis(
double blocks) → double -
For responsiveness you can use this function by passing how much screen portion you want to use in vertical (Y) axis in the range of
0% - 100%
. -
fontSize(
double size) → double - To make responsive font size, use this function
-
getDeviceType(
) → UdDeviceType - returns device type based on screen width
-
init(
BuildContext context) → void -
You must call this function in a
Widget build
function and it should be inside MaterialApp . Not Before MaterialApp . -
pixels(
double pt) → double - Flutter does not have exact solution to use point or pt values for responsiveness but we tried to make one and it works nice. You can try out by passing point or pt values.
-
pt(
double pt) → double - Flutter does not have exact solution to use point or pt values for responsiveness but we tried to make one and it works nice. You can try out by passing point or pt values.