Mrityunjayyshukla / Portfolio-Website

Here's my Portfolio Website to get to know me
0 stars 0 forks source link

Responsive Design #3

Open Mrityunjayyshukla opened 3 days ago

Mrityunjayyshukla commented 3 days ago

Make the design responsive

Here are the resolutions.

Mrityunjayyshukla commented 3 days ago

class Responsive {
  static bool isMobile(BuildContext context) => 
  MediaQuery.of(context).size.width < 850;

  static bool isTablet(BuildContext context) => 
  MediaQuery.of(context).size.width < 1100 && 
  MediaQuery.of(context).size.width >= 850;

  static bool isDesktop(BuildContext context) => 
  MediaQuery.of(context).size.width >= 1100;   
}