Skip to content

Move dimentions to seperate file. #91

@sapatevaibhav

Description

@sapatevaibhav

To make UI more powerful move all the UI related dimensions to the separate file.

like if you want to give the height of 20 to SizedBox then we should implement that dimension in that new file named dimensions.dart as

SizedBoxHeightSmall  = 10;
SizedBoxHeightMedium  = 20;
SizedBoxHeightHuge  = 30;

and give that dimension in our file by importing the dimensions file like.

const SizedBox(
  height = SizedBoxHeightMedium,
);

and so on for mediaQuery for making device independent screens too...

Metadata

Metadata

Labels

gssocGirl Script Summer of Codelevel2Medium to solve issues for GSSoC'24

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions