yarn add --dev @svgr/cli- Config in
package.json
"scripts": {
"svgr": "npx @svgr/cli --out-dir src/components/icons --ignore-existing -- src/assests/icons"
}yarn svgr
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
| import kotlinx.coroutines.CoroutineScope | |
| import kotlinx.coroutines.coroutineScope | |
| import kotlinx.coroutines.delay | |
| import kotlinx.coroutines.launch | |
| import java.lang.reflect.InvocationHandler | |
| import java.lang.reflect.InvocationTargetException | |
| import java.lang.reflect.Method | |
| import java.lang.reflect.Proxy | |
| import kotlin.coroutines.Continuation | |
| import kotlin.coroutines.cancellation.CancellationException |
Last updated March 28, 2021
There are now two ways to approach this:
This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions
If anybody needs animated webP support with Expo (Custom Dev Client) for the native <Image /> and <FastImage /> (read comments):
// create a file like plugins/withAnimatedWebPSupport.js -> this is for the native <Image />
const {I’m upgrading from a Mid 2014 MacBook Pro, so this isn’t a fair comparison to recent Intel machines, but if you’re like me and were waiting for a MacBook with a decent keyboard, you’ll see a big speed boost.
Non-scientific comparison - time to compile my ClojureScript project
Adaptive bed mesh is merged into klipper master branch. You can use this feature without this custom macro. Official klipper adaptive bed mesh
| interface WorkListener { | |
| fun onConditionNotMet() | |
| fun onStart() | |
| fun onSuccess(data: Data) | |
| fun onError(data: Data) | |
| } | |
| class WorkEnqueuer(val context: Context) { | |
| private var listener: WorkListener? = null |
| def execDownloadSigningInfo(ProductFlavor flavor) { | |
| task z { | |
| download { | |
| src "$url" | |
| dest { | |
| return rootProject.file("../file") | |
| } | |
| onlyIfNewer true | |
| } |