Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit f0312be

Browse files
authored
Merge pull request #15 from Flyclops/tickets/FL-1829
Fix freezing and crashing
2 parents 1de5d44 + dd75804 commit f0312be

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
## 0.1.1
2+
3+
- fix: if you switch tabs very quickly before the initial gif fetch then you will get stuck in an endless loop and crash the app.
4+
5+
[All Code Changes](https://github.com/Flyclops/tenor_flutter/compare/0.1.0...0.1.1)
6+
17
## 0.1.0
28

39
- feat: Integrate [tenor_dart's](https://pub.dev/packages/tenor_dart) new `TenorResult.source` parameter to track which tab the GIF was selected from for analytics
410
- fix: not being able to scroll down to load more on tablets or when using display zoom on iPad
511
- refactor: `TenorViewEmojis`, `TenorViewGifs`, `TenorViewStickers` and `TenorTabView` now have a `gifsPerRow` parameter instead of `mediaWidth` to be more explicit and support a wider range of devices
612

7-
[All Code Changes](https://github.com/Flyclops/tenor_flutter/compare/0.0.5...0.0.6)
13+
[All Code Changes](https://github.com/Flyclops/tenor_flutter/compare/0.0.5...0.1.0)
814

915
## 0.0.5
1016

lib/src/components/tab_view.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ class _TenorTabViewState extends State<TenorTabView>
271271
// Wait for a frame so that we can ensure that `scrollController` is attached
272272
WidgetsBinding.instance.addPostFrameCallback((_) async {
273273
while (_scrollController.position.extentAfter == 0) {
274+
// Stop trying to load more and exit the loop if:
275+
// 1 - the selected tab has changed
276+
// 2 - there are no more gifs to load
277+
if (_tabProvider.selectedTab != tab || !_hasMoreGifs) return;
278+
274279
await _loadMore();
275280
}
276281
});

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: tenor_flutter
2-
version: 0.1.0
2+
version: 0.1.1
33
description: An opinionated yet customizable Flutter package for searching and selecting from a list of GIFs/Stickers from the Tenor GIF search API.
44
homepage: https://github.com/flyclops
55
repository: https://github.com/flyclops/tenor_flutter

0 commit comments

Comments
 (0)