For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
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
import 'package:cross_file/cross_file.dart'; | |
import 'package:firebase_core/firebase_core.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:cloud_functions/cloud_functions.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:mime/mime.dart'; | |
import 'dart:io'; | |
import 'package:web/web.dart' as web; | |
class DigitalOceanProvider extends ChangeNotifier { |
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
import {HttpsError, onCall} from "firebase-functions/v2/https"; | |
import type {CallableRequest} from "firebase-functions/v2/https"; | |
import {S3Client, PutObjectCommand, DeleteObjectCommand} from '@aws-sdk/client-s3'; | |
import {getSignedUrl} from '@aws-sdk/s3-request-presigner'; | |
import {verifyUserIsAdmin} from "../utils.js"; | |
const s3: S3Client = new S3Client({ | |
region: process.env.DO_SPACES_REGION, | |
endpoint: process.env.DO_SPACES_ENDPOINT, | |
credentials: { |
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
fun main(args: Array<String>) { | |
// Create circles | |
val circle3 = Circle(2.0, "blue") | |
val circle2 = Circle(2.0) | |
val circle1 = Circle() | |
// Print circles | |
println("Circle 1: \n$circle1") | |
println() |