Skip to content

Commit

Permalink
Merge pull request #47 from alexdieudonne/master
Browse files Browse the repository at this point in the history
fix AnimatedItemBuilder
  • Loading branch information
jonasN5 committed Jun 8, 2023
2 parents 66e9809 + c6d91e6 commit 841e032
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
41 changes: 41 additions & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
4 changes: 2 additions & 2 deletions lib/src/widgets/core/chats_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:chat_ui_kit/src/styling/chats_list_style.dart';
import 'package:chat_ui_kit/src/utils/controllers.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:implicitly_animated_reorderable_list_2/implicitly_animated_reorderable_list_2.dart';
import 'package:implicitly_animated_reorderable_list_2/implicitly_animated_reorderable_list_2.dart' as reordered2;
import 'package:implicitly_animated_reorderable_list_2/transitions.dart';

import 'package:chat_ui_kit/src/models/chat_base.dart';
Expand Down Expand Up @@ -96,7 +96,7 @@ class _ChatsListState<T extends ChatBase> extends State<ChatsList<T>> {
if (widget.scrollHandler != null) widget.scrollHandler!.call(scroll);
return false;
},
child: ImplicitlyAnimatedList<T>(
child: reordered2.ImplicitlyAnimatedList<T>(
padding: widget.chatsListStyle?.padding,
physics: widget.chatsListStyle?.physics,
// The current items in the list.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/widgets/core/messages_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:chat_ui_kit/src/utils/extensions.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:functional_widget_annotation/functional_widget_annotation.dart';
import 'package:implicitly_animated_reorderable_list_2/implicitly_animated_reorderable_list_2.dart';
import 'package:implicitly_animated_reorderable_list_2/implicitly_animated_reorderable_list_2.dart' as reordered2;
import 'package:implicitly_animated_reorderable_list_2/transitions.dart';

import 'package:chat_ui_kit/src/models/message_base.dart';
Expand Down Expand Up @@ -207,7 +207,7 @@ class _MessagesListState<T extends MessageBase> extends State<MessagesList<T>> {
if (widget.scrollHandler != null) widget.scrollHandler!.call(scroll);
return false;
},
child: ImplicitlyAnimatedList<T>(
child: reordered2.ImplicitlyAnimatedList<T>(
physics: widget.style?.physics,
// The current _items in the list.
reverse: true,
Expand Down

0 comments on commit 841e032

Please sign in to comment.