Skip to content

Instantly share code, notes, and snippets.

@Sunbreak
Sunbreak / ffi-CN.md
Last active March 20, 2022 15:14 — forked from mraleph/ffi.md

Dart VM FFI愿景

Dart FFI项目(跟踪为问题#34452)的目的是提供一种低模板、低仪式和低开销的方式,与本地C/C++代码进行互操作。

这个项目背后的动机是双重的。

  1. Flutter最常见的请求之一是要求提供一种与本地(C/C++)代码交互的低开销同步机制(见问题#7053)。
  2. 我们希望有一个替代Dart VM C的API,以反映Dart语言今天的样子和它的使用环境。
@Sunbreak
Sunbreak / main.dart
Created March 10, 2022 11:45
Flutter-BottomNavigationBar-KeepAlive
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@Sunbreak
Sunbreak / main.dart
Created March 10, 2022 10:09
Flutter-TabBarView-KeepAlive
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override

ErrorReport

Target Platform: All

Target OS version/browser: All

Devices: Chrome

WriteBuffer aligment

@Sunbreak
Sunbreak / Example.md
Last active April 21, 2024 15:35
RenderProxyBox

RenderProxyBox

@Sunbreak
Sunbreak / Example.md
Last active January 9, 2020 06:35
BlendMode

BlendMode

@Sunbreak
Sunbreak / ErrorReport.md
Last active January 8, 2020 07:34
`BlendMode` for `Image` works on Android/iOS, not Web

ErrorReport

Target Platform: Web

Target OS version/browser: Chrome

Devices: Chrome

BlendMode for Image works on Android/iOS, not Web

@Sunbreak
Sunbreak / ErrorReport.md
Last active January 8, 2020 07:32
`RenderRepaintBoundary#toImage` works on Android/iOS, not Web

ErrorReport

Target Platform: Web

Target OS version/browser: Chrome

Devices: Chrome

RenderRepaintBoundary#toImage works on Android/iOS, not Web