Fakultas Ilmu Komputer UI

styles.dart 1.18 KB
Newer Older
1
2
import 'package:flutter/material.dart';

Fakhira Devina's avatar
Fakhira Devina committed
3
4
5
6
const Color greenPrimary = Color(0xff3A903A);
const Color greenPale = Color(0xff4FBA4F);
const Color redPrimary = Color(0xffC60000);
const Color grayPrimary = Color(0xff645C5C);
7

Fakhira Devina's avatar
Fakhira Devina committed
8
9
10
11
12
13
14
15
16
const double superSmallSpace = 4.0;
const double smallSpace = 4.0;
const double regularSpace = 8.0;
const double regularBiggerSpace = 12.0;
const double doubleSpace = 16.0;
const double tripleSpace = 32.0;
const double spaceFourty = 45.0;
const double quartetSpace = 64.0;
const double spaceFourtyEight = 48.0;
17
18
19

final List<BoxShadow> regularShadow = [
  BoxShadow(
20
21
22
23
    color: Colors.black.withOpacity(0.25),
    blurRadius: 7.0, // has the effect of softening the shadow
    offset: Offset(
      5.0, // horizontal, move right 10
Agnes Handoko's avatar
Agnes Handoko committed
24
      5.0, // vertical, movesn down 10
25
26
    ),
  )
27
];
28
29
30
31
32
33
34
35
36
37
38
39

final List<BoxShadow> smallShadow = [
  BoxShadow(
    color: Colors.black.withOpacity(0.25),
    blurRadius: 2.0, // has the effect of softening the shadow
    offset: Offset(
      1.5, // horizontal, move right 10
      1.5, // vertical, move down 10
    ),
  )
];

40
41
final BorderRadius regularBorderRadius = BorderRadius.circular(10);
final BorderRadius doubleBorderRadius = BorderRadius.circular(20);