zeba_academy_scroll_effects 1.0.1
zeba_academy_scroll_effects: ^1.0.1 copied to clipboard
Beautiful scroll effects like parallax, sticky headers, and animations.
๐ฆ zeba_scroll_effects #
โจ A powerful Flutter package that provides beautiful and reusable scroll-based UI effects.
Build modern, smooth, and engaging UIs effortlessly with ready-to-use scroll animations like parallax, collapsing app bars, fade/scale effects, sticky headers, and more.
๐ Features #
- ๐ Parallax Scrolling
- ๐ Collapsing AppBar
- โจ Fade & Scale on Scroll
- ๐ Sticky Headers
- ๐ฌ Scroll Reveal Animations
- โก Lightweight & easy to integrate
- ๐ฏ No external dependencies
๐ฆ Installation #
Add this to your pubspec.yaml:
dependencies:
zeba_scroll_effects: ^0.0.1
Then run:
flutter pub get
๐ Usage #
๐น Import #
import 'package:zeba_scroll_effects/zeba_scroll_effects.dart';
๐ Parallax Effect #
ZebaParallax(
controller: scrollController,
child: Image.network('https://picsum.photos/500'),
)
๐ Collapsing AppBar #
ZebaCollapsingAppBar(
title: "Zeba Effects",
background: Image.network(
"https://picsum.photos/500",
fit: BoxFit.cover,
),
)
โจ Fade & Scale Effect #
ZebaFadeScale(
controller: scrollController,
child: Text("Scroll Me"),
)
๐ Sticky Header #
ZebaStickyHeader(
header: Container(
color: Colors.white,
child: Text("Header"),
),
child: Container(),
)
๐ฌ Scroll Reveal Animation #
ZebaScrollReveal(
child: Text("Animated Item"),
)
๐ฑ Example #
class DemoPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final controller = ScrollController();
return Scaffold(
body: CustomScrollView(
controller: controller,
slivers: [
ZebaCollapsingAppBar(
title: "Zeba Effects",
background: Image.network(
"https://picsum.photos/500",
fit: BoxFit.cover,
),
),
SliverList(
delegate: SliverChildBuilderDelegate(
(context, index) {
return ZebaFadeScale(
controller: controller,
child: ListTile(
title: Text("Item $index"),
),
);
},
childCount: 20,
),
),
],
),
);
}
}
โก Performance Notes #
- Designed for smooth scrolling performance
- Uses efficient
AnimatedBuilderand Flutter rendering - Works well with large lists (optimize further with
RepaintBoundaryif needed)
๐งช Testing #
Run tests using:
flutter test
๐ค Contributing #
Contributions are welcome! Feel free to open issues or submit pull requests to improve this package.
๐ License #
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
You are free to:
- Use
- Modify
- Distribute
Under the condition that:
- You disclose source code
- Use the same license
- State changes made
Full license text: https://www.gnu.org/licenses/gpl-3.0.en.html
๐จโ๐ป About Me #
โจ Iโm Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at https://sufyanism.com/ or connect with me on LinkedIn: https://www.linkedin.com/in/sufyanism
๐ Your all-in-one learning hub! #
๐ Explore courses and resources in coding, tech, and development at zeba.academy and code.zeba.academy.
Empower yourself with practical skills through curated tutorials, real-world projects, and hands-on experience. Level up your tech game today! ๐ปโจ
Zeba Academy is a learning platform dedicated to coding, technology, and development.
โก Visit our main site: https://zeba.academy โก Explore courses: https://code.zeba.academy โก YouTube: https://www.youtube.com/@zeba.academy โก Instagram: https://www.instagram.com/zeba.academy/
๐ Thank You #
Thank you for using zeba_scroll_effects! If you like this package, consider giving it a โญ on GitHub.