Skip to content

Commit

Permalink
fix bottom bar scroll animation
Browse files Browse the repository at this point in the history
  • Loading branch information
dasmikko committed Apr 28, 2020
1 parent a80401d commit 3273bee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/screens/thread.dart
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ class _ThreadScreenState extends State<ThreadScreen>
),
details != null
? ScrollablePositionedList.builder(
padding: EdgeInsets.only(bottom: 66),
itemCount: details.posts.length,
itemBuilder: (context, index) {
ThreadPost item = details.posts[index];
Expand Down Expand Up @@ -664,7 +665,7 @@ class _ThreadScreenState extends State<ThreadScreen>
itemPositionsListener: itemPositionListener,
didAttach:
(ScrollController scrollControllerFromListView) async {
/*scrollControllerFromListView.addListener(() {
scrollControllerFromListView.addListener(() {
if (scrollControllerFromListView
.position.userScrollDirection ==
ScrollDirection.reverse) {
Expand All @@ -686,7 +687,7 @@ class _ThreadScreenState extends State<ThreadScreen>
if (scrollControllerFromListView.position.atEdge) {
expandController.reverse();
}
});*/
});

// The delayed if a huge stupid fucking hack, to make it work while in debug mode.
await Future.delayed(Duration(milliseconds: 100));
Expand All @@ -704,7 +705,7 @@ class _ThreadScreenState extends State<ThreadScreen>
],
),
),
extendBody: false,
extendBody: true,
bottomNavigationBar: SizeTransition(
axisAlignment: -1.0,
sizeFactor: animation,
Expand Down

0 comments on commit 3273bee

Please sign in to comment.