kenburns 1.0.3 copy "kenburns: ^1.0.3" to clipboard
kenburns: ^1.0.3 copied to clipboard

outdated

Kenburns effect on flutter. The Ken Burns effect is a type of panning and zooming effect used in video production from still imagery.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:kenburns/kenburns.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Padding(
          padding: const EdgeInsets.all(30.0),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            mainAxisSize: MainAxisSize.max,
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              /*
              Container(
                height: 300,
                child: KenBurns(
                  child: Image.network(
                    "https://www.photo-paysage.com/?file=pic_download_link/picture&pid=3100",
                    fit: BoxFit.cover,
                  ),
                ),
              ),
              */Container(
                height: 300,
                child: KenBurns.multiple(
                  maxAnimationDuration: Duration(milliseconds: 2000),
                  minAnimationDuration: Duration(milliseconds: 1000),
                  children: <Widget>[
                    Image.network(
                      "https://www.photo-paysage.com/?file=pic_download_link/picture&pid=3100",
                      fit: BoxFit.cover,
                    ),
                    Image.network(
                      "https://cdn.getyourguide.com/img/location_img-59-1969619245-148.jpg",
                      fit: BoxFit.cover,
                    ),
                    Image.network(
                      "https://www.theglobeandmail.com/resizer/vq3O7LI3hvsjTP2N0m9NwU4W3Eg=/1500x0/filters:quality(80)/arc-anglerfish-tgam-prod-tgam.s3.amazonaws.com/public/4ETF3GZR3NA3RDDW23XDRBKKCI",
                      fit: BoxFit.cover,
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
25
likes
0
pub points
55%
popularity

Publisher

unverified uploader

Kenburns effect on flutter. The Ken Burns effect is a type of panning and zooming effect used in video production from still imagery.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on kenburns