mickaelhrndz / entry Goto Github PK
View Code? Open in Web Editor NEWFlutter package that lets you simply animate a widget into a visible state.
Home Page: https://pub.dev/packages/entry
License: MIT License
Flutter package that lets you simply animate a widget into a visible state.
Home Page: https://pub.dev/packages/entry
License: MIT License
Is it possible to have a different duration and attributes for the exiting animation?
Example:
Entry(
duration: Duration(milliseconds: 100),
opacity: 0,
exitingOpacity: .7,
// .... and so on
)
Line 48 in 7505b0c
Entry currently depends on simple_animations 3.0.1. It looks like the newest version of that package is 4.0.0.
i'm getting this error:
Error (Xcode):
../../../.pub-cache/hosted/pub.dev/simple_animations-5.0.0+3/lib/animation_mixin/animation_mixin.
dart:139:56: Error: A value of type 'ValueListenable' can't be assigned to a variable of
type 'ValueNotifier'.
I've been researching and it is fixed in simple_animations last version, so could you update the dependency?
Thanks in advance.
Hey, thanks for the package, fantastic work!
Do you have any ideas regarding the possibility to restart the animation each time the child widget fully gets back into the view (after being scrolled off the screen, for example)?
Really love the simplicity of this package, thanks for publishing it!
When I try to stagger different Entry
widgets with delays, it only rarely really takes that delay into account.
Here's an abstracted example of what I'm trying to do:
Column(
children: [
Entry(
visible: playAnimation,
duration: const Duration(milliseconds: 300),
opacity: 0,
yOffset: 20,
child: Text("Headline 1"),
),
Entry(
visible: playAnimation,
duration: const Duration(milliseconds: 300),
delay: const Duration(seconds: 2),
opacity: 0,
yOffset: 20,
child: Text("Headline 2"),
),
],
);
Even picking a definitely noticable delay like 2 seconds, both animations play at the same time.
Sometimes it seems to take the delay into account; i can't definitely say when that is. Possibly the very first animation after app start? But in 99% of times, it just ignores the delay, when playing the animation.
Let me know if I'm missing something or can provide anything else to help out. Flutter doctor output below.
❯ fvm flutter doctor -v
[!] Flutter (Channel stable, 3.13.4, on macOS 13.4.1 22F770820d darwin-arm64, locale de-DE)
• Flutter version 3.13.4 on channel stable at /Users/reesz/fvm/versions/stable
! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.0.5/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/reesz/fvm/versions/stable. Consider adding /Users/reesz/fvm/versions/stable/bin to the front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 367f9ea16b (2 weeks ago), 2023-09-12 23:27:53 -0500
• Engine revision 9064459a8b
• Dart version 3.1.2
• DevTools version 2.25.0
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] VS Code (version 1.81.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (3 available)
• Finch (mobile) • 00008101-000A09113488001E • ios • iOS 16.6 20G75
• macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F770820d darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.92
[✓] Network resources
• All expected network resources are available.
#plugin version
entry: ^0.0.2+2
https://i.ibb.co/BjqpDGp/Screenshot-2021-05-05-at-3-16-33-am.png
#devices & IOS versions
real device iPhone 6
ios 12.5.2
also in iPhone 12 pro simulator
ios 14.2
Xcode's output:
↳
/Users/aminelahrim/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/entry-0.0.2+2/ios/Classes/SwiftAnimateInPlugin.swift:4:14: error: invalid redeclaration of 'SwiftEntryPlugin'
public class SwiftEntryPlugin: NSObject, FlutterPlugin {
^
/Users/aminelahrim/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/entry-0.0.2+2/ios/Classes/SwiftEntryPlugin.swift:4:14: note: 'SwiftEntryPlugin' previously declared here
public class SwiftEntryPlugin: NSObject, FlutterPlugin {
^
/Users/aminelahrim/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/entry-0.0.2+2/ios/Classes/SwiftEntryPlugin.swift:4:14: error: invalid redeclaration of 'SwiftEntryPlugin'
public class SwiftEntryPlugin: NSObject, FlutterPlugin {
^
/Users/aminelahrim/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/entry-0.0.2+2/ios/Classes/SwiftAnimateInPlugin.swift:4:14: note: 'SwiftEntryPlugin' previously declared here
public class SwiftEntryPlugin: NSObject, FlutterPlugin {
I would like to ask if its possible to re-trigger the Entry
animation event on rebuild? I'm using flutter_bloc as a state management (but I'm using the cubits) . Here is a sample snippet.
BlocBuilder<SomeCubit,SomeState>(
bloc: someCubitInstance,
builder: (context,state) {
if (state is StateLoading) {
return SomeLoadingWidget();
} else if (state is StateSuccess) {
return Entry.all(SomeDetailedWidget()); // Does trigger only once on stateless/stateful rebuild.
... some code..
} else if (state is fail.....){
... more code here
}
... and more irrelevant code..
}
};
The Entry.all does not work. How do I make this work? I've posted this in StackOverFlow but haven't received any comments.
Thanks in advance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.