old version / new version: ✅ ✅ feature 1 (#PD-1111) ✅ ✅ feature 2 (#PD-2222) ✅ ✅ feature 3 (#PD-3333) ❗ ✅ feature 4 (#PD-4444) → follow up : #PD-5555
This file contains 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
export const getFileFromObjectUrl = async (url: string) => { | |
const result = await fetch(url); | |
return result.blob(); | |
}; |
This file contains 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
const { createHash } = require("crypto"); | |
function sha256(string) { | |
return createHash("sha256").update(string).digest("hex"); | |
} | |
const firstUrlMaxLength = 74; | |
/** | |
* |
This file contains 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
const {createServer} = require("http"); | |
let server = createServer((request, response) => { | |
response.writeHead(200, {"Content-Type": "text/html"}); | |
response.write(` | |
<h1>Hello!</h1> | |
<p>You asked for <code>${request.url}</code></p>`); | |
response.end(); | |
}); | |
server.listen(8000); | |
console.log("Listening! (port 8000)"); |
This file contains 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:flutter/material.dart'; | |
@immutable | |
class ClipShadowPath extends StatelessWidget { | |
final Shadow shadow; | |
final CustomClipper<Path> clipper; | |
final Widget child; | |
ClipShadowPath({ | |
@required this.shadow, |
NewerOlder