delayed_widget 1.1.2 copy "delayed_widget: ^1.1.2" to clipboard
delayed_widget: ^1.1.2 copied to clipboard

A simple and easy to use flutter package, to make the widget show up in a smooth way as soon as it is created.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  MyHomePage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('DelayedWidget Example'),
      ),
      body: Center(
          child: DelayedWidget(
              delayDuration: Duration(milliseconds: 200), // Not required
              animationDuration: Duration(seconds: 1), // Not required
              animation: DelayedAnimations.SLIDE_FROM_BOTTOM, // Not required
              child: Container(
                width: 200,
                height: 200,
                color: Colors.red,
              ))),
    );
  }
}
32
likes
120
pub points
88%
popularity

Publisher

unverified uploader

A simple and easy to use flutter package, to make the widget show up in a smooth way as soon as it is created.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on delayed_widget