fluvie 0.1.0 copy "fluvie: ^0.1.0" to clipboard
fluvie: ^0.1.0 copied to clipboard

Write a video like a Flutter screen: declarative widgets in, a real video file out. No timelines to scrub, no frame math.

example/README.md

Fluvie examples #

The full, runnable examples live in the workspace example/ app: twelve lessons (example/lib/lessons/01_hello_video.dart through 12_the_kitchen_sink.dart) plus a scrubbable inspector. Each lesson is one complete, readable Video.

The smallest one, lesson 01:

import 'package:flutter/material.dart' hide Animation;
import 'package:fluvie/fluvie.dart';

Video helloVideo() => Video(
  size: VideoSize.square,
  poster: 1.seconds,
  scenes: [
    Scene(
      duration: 4.seconds,
      background: Background.gradient(const [Color(0xFF1A2980), Color(0xFF26D0CE)]),
      children: [
        const Text(
          'Hello, Fluvie',
          style: TextStyle(color: Colors.white, fontSize: 72, fontWeight: FontWeight.bold),
        ).animate([Animation.fadeIn(), Animation.pop()]),
      ],
    ),
  ],
);

Render it with the fluvie_cli headless renderer:

fluvie render 01_hello_video --out hello.mp4

See the documentation for the guides and the reference.

1
likes
0
points
537
downloads

Publisher

unverified uploader

Weekly Downloads

Write a video like a Flutter screen: declarative widgets in, a real video file out. No timelines to scrub, no frame math.

Homepage
Repository (GitHub)
View/report issues

Topics

#video #animation #rendering #ffmpeg

License

unknown (license)

Dependencies

flutter, flutter_svg, highlight, http, intl, markdown, meta, riverpod

More

Packages that depend on fluvie