render 0.0.1 copy "render: ^0.0.1" to clipboard
render: ^0.0.1 copied to clipboard

outdated

A package to render flutter widgets to videos, gifs and images

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:render/render.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Render(
      child: Scaffold(
        appBar: AppBar(
          title: const Text("Render"),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Expanded(
                child: Card(
                  elevation: 5,
                  shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(15.0),
                  ),
                  child: ClipPath(
                    clipper: ShapeBorderClipper(
                        shape: RoundedRectangleBorder(
                            borderRadius: BorderRadius.circular(15))),
                    child: Container(
                      color: Colors.orange,
                    ),
                  ),
                ),
              ),
              TextButton(onPressed: () {}, child: const Text("Render"))
            ],
          ),
        ),
      ),
    );
  }
}
85
likes
0
points
230
downloads

Publisher

unverified uploader

Weekly Downloads

A package to render flutter widgets to videos, gifs and images

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on render