For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
.elevation-2 { | |
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), | |
0px 2px 2px 0px rgba(0, 0, 0, 0.14), | |
0px 1px 5px 0px rgba(0, 0, 0, 0.12); | |
} | |
.elevation-3 { | |
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), | |
0px 3px 4px 0px rgba(0, 0, 0, 0.14), | |
0px 1px 8px 0px rgba(0, 0, 0, 0.12); |
This is way more complicated than it should be. The following conditions need to be met :
- need to be able to track and merge in upstream changes
- don't want remote commit messages in master
- only interested in sub-directory of another repo
- needs to go in a subdirectory in my repo.
In this particular case, I'm interested in bringing in the 'default' template of jsdoc as a sub-directory in my project so I could potentially make changes to the markup it genereates while also being able to update from upstream if there are changes. Ideally their template should be a separate repo added to jsdoc via a submodule -- this way I could fork it and things would be much easier.... but, it is what it is.
After much struggling with git, subtree and git-subtree, I ended up finding this http://archive.h2ik.co/2011/03/having-fun-with-git-subtree/ -- it basically sets up separate branches from tracking remote, the particular sub-directory, and uses git subtree contrib module to pull it all togther. Following are