animated_appbar
2.1.5, released 5 years ago by an unverified publisher
AppBar that animates its height when navigating between pages.
What it does
Provides a BaseLayout and AnimatedAppBar widget that smoothly change the AppBar height during page transitions. Includes helper methods for routing with custom AppBar widgets.
AI-written summary of version 2.1.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need animated AppBar height changes during navigation
- You want a simple way to animate AppBar without writing custom animation code
Skip it when
- You require complex navigation logic beyond simple page pushes
- You need a full‑featured navigation solution
Strengths
- Easy to integrate with minimal code
- Handles key management for smooth animations
- Works on all Flutter platforms
Weaknesses
- Limited to height animation only
- Relies on custom BaseLayout, not compatible with existing Scaffold structures
- No built‑in navigation stack management
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
import 'package:flutter/material.dart';
import 'package:animated_appbar/animated_appbar.dart';
void main() => runApp(MaterialApp(home: BaseLayout(
appBar: AnimatedAppBar(initHeight: 120, backgroundColor: Colors.blue),
scaffold: Scaffold(body: Center(child: Text('Home'))),
)));
Alternatives
Packages that do the same job and could replace animated_appbar.
- hero_here
Hero animations on the same page without a Navigator or routes.
77Compare - page_animation_transition
Add customizable page transitions like slide, fade, scale, and rotate for Navigator and go_router.
71Compare - turn_page_transition
Provides a simple page-turning transition effect for page routes and page views.
56Compare - anitex
Implicitly animates text changes with smooth transitions
47Compare
Works with
Packages commonly used together with animated_appbar: ones it builds on, ones built on it, and its own family.