1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- import 'package:flutter/material.dart';
- class PageBreaks {
- static double get largePhone => 550;
- static double get tabletPortrait => 768;
- static double get tabletLandscape => 1024;
- static double get desktop => 1440;
- }
- class Insets {
- static double gutterScale = 1;
- static double scale = 1;
- /// Dynamic insets, may get scaled with the device size
- static double get mGutter => m * gutterScale;
- static double get lGutter => l * gutterScale;
- static double get xs => 2 * scale;
- static double get sm => 6 * scale;
- static double get m => 12 * scale;
- static double get l => 24 * scale;
- static double get xl => 36 * scale;
- }
- class FontSizes {
- static double get scale => 1;
- static double get s11 => 11 * scale;
- static double get s12 => 12 * scale;
- static double get s14 => 14 * scale;
- static double get s16 => 16 * scale;
- static double get s18 => 18 * scale;
- }
- class Sizes {
- static double hitScale = 1;
- static double get hit => 40 * hitScale;
- static double get iconMed => 20;
- static double get sideBarMed => 225 * hitScale;
- static double get sideBarLg => 290 * hitScale;
- }
- class Corners {
- static double get btn => s5;
- static double get dialog => 12;
- /// Xs
- static double get s3 => 3;
- static BorderRadius get s3Border => BorderRadius.all(s3Radius);
- static Radius get s3Radius => Radius.circular(s3);
- /// Small
- static double get s5 => 5;
- static BorderRadius get s5Border => BorderRadius.all(s5Radius);
- static Radius get s5Radius => Radius.circular(s5);
- /// Medium
- static double get s8 => 8;
- static BorderRadius get s8Border => BorderRadius.all(s8Radius);
- static Radius get s8Radius => Radius.circular(s8);
- /// Large
- static double get s10 => 10;
- static BorderRadius get s10Border => BorderRadius.all(s10Radius);
- static Radius get s10Radius => Radius.circular(s10);
- }
|