tbib_anim 0.0.2 copy "tbib_anim: ^0.0.2" to clipboard
tbib_anim: ^0.0.2 copied to clipboard

This Package for animated some widgets.

example/lib/main.dart

import 'package:example/src/anim_appbar.dart';
import 'package:example/src/anim_product.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Anim appbar'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int page = 1;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: page == 0
          ? null
          : AppBar(
              title: Text("some animation"),
            ),
      body: page == 0 ? animAppbar(widget.title) : myAnimProduct(),
    );
  }
}
0
likes
110
pub points
0%
popularity

Publisher

unverified uploader

This Package for animated some widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on tbib_anim