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
.editor-container { | |
-webkit-font-smoothing: none | |
} |
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
{ | |
// all properties of items are their "setup"/"rig" properties | |
// animations can override these as time elapses, however this example has no animations | |
"artboards": { | |
"type": "artboards", // every object is expected to have a type field | |
"id": 985, // ids are used to reference one object from another, however this example doesn't use this | |
"name": "Artboards", // every objet can have a user provided name | |
"main": true, // whether or not this artboard is the main artboard | |
"children": // most objects can have children (type artboards, artboard, node, shape, path) | |
[{ |
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
{ | |
"artboards": { | |
"type": "artboards", | |
"id": 985, | |
"name": "Artboards", | |
"main": 0, | |
"children": [{ | |
"type": "artboard", | |
"id": 986, | |
"name": "Artboard", |
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 'dart:math'; | |
import 'flare.dart'; | |
import 'flare_actor.dart'; | |
import 'flare_controller.dart'; | |
import 'package:flare_dart/math/mat2d.dart'; | |
/// [FlareControls] is a concrete implementation of the [FlareController]. | |
/// | |
/// This controller will provide some basic functionality, such as | |
/// playing an animation, and advancing every frame. If multiple animations are |
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 'dart:typed_data'; | |
import 'package:flutter/material.dart'; | |
import 'dart:ui' as ui; | |
void main() async { | |
const double width = 800; | |
const double height = 600; | |
final ui.PictureRecorder recorder = new ui.PictureRecorder(); | |
final ui.Canvas canvas = | |
new ui.Canvas(recorder, Rect.fromLTWH(0, 0, width, height)); |
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 'dart:async'; | |
import 'dart:typed_data'; | |
import 'package:flare_dart/math/mat2d.dart'; | |
import 'package:flare_flutter/flare.dart'; | |
import "package:flare_flutter/flare_actor.dart"; | |
import 'package:flare_flutter/flare_controller.dart'; | |
import "package:flutter/material.dart"; | |
import 'package:flutter/services.dart'; |
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 'dart:math'; | |
import 'package:flare_dart/math/mat2d.dart'; | |
import 'flare.dart'; | |
import 'flare_actor.dart'; | |
import 'flare_controller.dart'; | |
/// [FlareControls] is a concrete implementation of the [FlareController]. | |
/// | |
/// This controller will provide some basic functionality, such as | |
/// playing an animation, and advancing every frame. If multiple animations are |
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'; | |
import 'package:flutter/rendering.dart'; | |
import 'dart:ui' as ui; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { |
OlderNewer