For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
Download Flutter SDK, extract the "Flutter" folder and put somewhere on your machine https://flutter.dev/docs/get-started/install
Add path for 'location/flutter/bin'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>CSS Intrinsic Ratios</title> | |
| <style> | |
| body { | |
| max-width: 800px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isSubset(arr1, arr2) { | |
| // convert arr1 as obj with keys to allow direct lookup for values, avoid loop in another loop | |
| let obj = {}; | |
| arr1.forEach((el, index) => { | |
| obj[el] = index; | |
| }) | |
| // loop through arr2 and direct lookup in obj, see if all arr2 elements are present in arr1 | |
| let result = arr2.every((el)=>{ | |
| return obj[el] !== undefined; |