A collection of sample apps that use Stream

Overview

Flutter samples

Quick Links

What is Stream?

Stream allows developers to rapidly deploy scalable feeds and chat messaging with an industry leading 99.999% uptime SLA guarantee.

With Stream's chat components, developers quickly add chat to their app for a variety of use-cases:

  • Livestreams like Twitch or Youtube
  • In-Game chat like Overwatch or Fortnite
  • Team style chat like Slack
  • Messaging style chat like Whatsapp or Facebook's messenger
  • Commerce chat like Drift or Intercom

Repo Overview ๐Ÿ˜Ž

This repo contains projects and samples developed by the team and Stream community. Projects are broke up into directories under the packages folder. Each project contains a README with build and execution instructions.

Projects ๐Ÿš€

  • Stream Chat v1: a sample app implemented using Stream Chat and Flutter. It is a fully fledged messaging app built using a combination of our pre-made widgets and custom Flutter widgets.

  • Stream Chatty Stream Chatty is a sample chat app made in Flutter using Stream Chat, Firebase, and flutter_bloc. It has full light and dark mode support, real-time chat, and full authentication using Firebase auth.

  • iMessage clone: an iMessage clone implemented using Flutter and the stream_chat_flutter_core package.

Requirements ๐Ÿ› 

Before running this project please ensure Flutter is installed and configured on your machine. If you're new to Flutter, please checkout the official guide with installation instructions for your OS.

Contributing

  • How can I submit a sample app?
    • Apps submissions are always welcomed! ๐Ÿฅณ Open a pr with a proper description and we'll review it as soon as possible
  • Spot a bug ๐Ÿ•ท ?
    • We welcome code changes that improve the apps or fix a problem. Please make sure to follow all best practices and add tests if applicable before submitting a Pull Request on Github.
Comments
  • The message screen gets an error without the Martial app.

    The message screen gets an error without the Martial app.

    ======== Exception caught by widgets library ======================================================= The following assertion was thrown building StreamChannelHeader(dirty, dependencies: [_LocalizationsScope-[GlobalKey#275e6], _InheritedTheme]): You must have a StreamChatTheme widget at the top of your widget tree 'package:stream_chat_flutter/src/stream_chat_theme.dart': Failed assertion: line 25 pos 7: 'streamChatTheme != null'

    ` return Scaffold(
          body:RefreshIndicator(
            onRefresh: _controller.refresh,
            child: StreamChannelListView(
              controller: _controller,
                onChannelTap: (channel) => Navigator.of(context, rootNavigator: true).push(
                  MaterialPageRoute(
                    builder: (_) => StreamChannel(
                      channel: channel,
                      child: StreamChannelScreen(channel: channel),
                    ),
                  ),
                ),
            ),
          ),
        );`
    
    waiting for customer response 
    opened by ChiragGajjar 15
  • Message Forward

    Message Forward

    Please select which package this feature is related to

    stream_chat_flutter

    Which platforms would this feature impact?

    iOS, Android, Web, Windows, MacOS, Linux

    Is your feature request related to a problem?

    No

    Describe the solution that you'd like

    I Want to able to forward a message or multiple messages to other users or channels in the app

    Describe alternatives that you have considered

    No response

    Additional context

    No response

    Code of Conduct

    • [X] I agree to follow this project's Code of Conduct
    opened by 1AhmedYasser 11
  • Project doesn't compile

    Project doesn't compile

    The current version of the sample project doesn't compile (commit a22b31d2aba1e788ce7f142eb38cd4e9c819c466)

    Following build errors occur:

    lib/main.dart:348:23: Error: The argument type 'LayoutBuilder Function(BuildContext, dynamic)' can't be assigned to the parameter type 'Widget Function(BuildContext)'.

    • 'LayoutBuilder' is from 'package:flutter/src/widgets/layout_builder.dart' ('../../../development/flutter/packages/flutter/lib/src/widgets/layout_builder.dart').
    • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../development/flutter/packages/flutter/lib/src/widgets/framework.dart').
    • 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('../../../development/flutter/packages/flutter/lib/src/widgets/framework.dart'). emptyBuilder: (_, __) { ^ lib/main.dart:495:39: Error: The argument type 'LayoutBuilder Function(BuildContext, dynamic)' can't be assigned to the parameter type 'Widget Function(BuildContext)'.
    • 'LayoutBuilder' is from 'package:flutter/src/widgets/layout_builder.dart' ('../../../development/flutter/packages/flutter/lib/src/widgets/layout_builder.dart').
    • 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../development/flutter/packages/flutter/lib/src/widgets/framework.dart').
    • 'Widget' is from 'package:flutter/src/widgets/framework.dart' ('../../../development/flutter/packages/flutter/lib/src/widgets/framework.dart'). emptyBuilder: (_, query) {
    waiting for customer response 
    opened by cliffofdeath 7
  • project can't run

    project can't run

    hi i am using your 'develop' branch, and flutter 2.2.3, and i get this while trying to run the imessage sample:

    Execution failed for task ':app:processDebugMainManifest'.

    Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @75a20156

    can you please fix?

    opened by noChamp 6
  • Build failed

    Build failed

    Flutter 2.1.0-12.2.pre โ€ข channel beta โ€ข https://github.com/flutter/flutter.git Framework โ€ข revision 5bedb7b1d5 (10 days ago) โ€ข 2021-03-17 17:06:30 -0700 Engine โ€ข revision 711ab3fda0 Tools โ€ข Dart 2.13.0 (build 2.13.0-116.0.dev)

    ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/lib/src/path_provider_windows_real.dart:126:25: Error: The getter 'addressOf' isn't defined for the class 'GUID'.

    • 'GUID' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. knownFolderID.addressOf, KF_FLAG_DEFAULT, NULL, pathPtrPtr); ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1067:7: Error: The getter 'addressOf' isn't defined for the class 'LOGFONT'.
    • 'LOGFONT' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. addressOf.cast().elementAt(28).cast(); ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1112:29: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.
    • 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. LOGFONT get elfLogFont => addressOf.cast().ref; ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1114:29: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.
    • 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. String get elfFullName => addressOf ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1120:26: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.
    • 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. String get elfStyle => addressOf ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1126:27: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.
    • 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. String get elfScript => addressOf ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2688:7: Error: The getter 'addressOf' isn't defined for the class 'OSVERSIONINFO'.
    • 'OSVERSIONINFO' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. addressOf.cast().elementAt(20).cast().unpackString(128); ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2699:11: Error: The getter 'addressOf' isn't defined for the class 'OSVERSIONINFO'.
    • 'OSVERSIONINFO' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. ..addressOf.cast().elementAt(20).value = 0; ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2744:24: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_DEVICE_INFO'.
    • 'BLUETOOTH_DEVICE_INFO' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. String get szName => addressOf ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2837:7: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_PIN_INFO'.
    • 'BLUETOOTH_PIN_INFO' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. addressOf.cast().elementAt(BTH_MAX_PIN_SIZE).value; ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2840:5: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_PIN_INFO'.
    • 'BLUETOOTH_PIN_INFO' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. addressOf.cast().elementAt(BTH_MAX_PIN_SIZE).value = ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2845:28: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_PIN_INFO'.
    • 'BLUETOOTH_PIN_INFO' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. String.fromCharCodes(addressOf.cast().asTypedList(pinLength)); ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2853:7: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_PIN_INFO'.
    • 'BLUETOOTH_PIN_INFO' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. addressOf.cast().elementAt(idx).value = pinData[idx]; ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart:38:31: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
    • 'GUID' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. final iid = GUID.allocate().addressOf; ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart:56:33: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
    • 'GUID' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. final clsid = GUID.allocate().addressOf; ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/winrt/winrt_helpers.dart:86:40: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
    • 'GUID' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. final riidCalendar = GUID.allocate().addressOf; ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IDesktopWallpaper.dart:197:38: Error: The getter 'addressOf' isn't defined for the class 'COMObject'.
    • 'COMObject' is from 'package:win32/src/com/combase.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. final ptr = COMObject.allocate().addressOf; ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IDesktopWallpaper.dart:200:49: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
    • 'GUID' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. GUID.fromString(CLSID_DesktopWallpaper).addressOf, ^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IDesktopWallpaper.dart:203:48: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
    • 'GUID' is from 'package:win32/src/structs.dart' ('../../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. GUID.fromString(IID_IDesktopWallpaper).addressOf, ^^^^^^^^^
    waiting for customer response 
    opened by lcw99 6
  • Setup help

    Setup help

    Hello Stream team, I really like all the sample apps, but I just want ask that is it possible if you can give us a comprehensive guide or a video on how to setup the projects or sample apps. By that i mean if you can help me add my own firebase console project. What all do i need to enable and where to add my stream api key and secret key.Could you please reply as i want to improve upon the first stream chat v1 sample app and after improving it give it us a college project. So could you pease relpy fast. THANK YOU!

    question 
    opened by ritam749 5
  • Error while initiating new chat in sample app

    Error while initiating new chat in sample app

    Screenshot 2021-02-12 at 1 45 13 PM

    Issue:- In example app when I am clicking on the edit icon on the top right gives an error.

    My Flutter Environment:-

    [โœ“] Flutter (Channel beta, 1.25.0-8.3.pre, on Mac OS X 10.15.7 19H2 darwin-x64,
        locale en-IN)
    [โœ“] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    [โœ“] Xcode - develop for iOS and macOS
    [โœ“] Chrome - develop for the web
    [โœ“] Android Studio (version 4.0)
    [โœ“] Connected device (2 available)
    
    opened by hiashutoshsingh 5
  • paginationParams is gone ?

    paginationParams is gone ?

    Hello Just update my dependecies

    stream_chat_flutter: ^3.1.1
    stream_chat_persistence: ^3.0.0
    

    Capture dโ€™eฬcran 2021-10-22 aฬ€ 12 43 43

    Can you point how to handle pagination in new version ?

    Thank you,

    opened by Abacaxi-Nelson 4
  • I cannot run this project using ios simulator

    I cannot run this project using ios simulator

    Describe the bug

    Using develop branch, I cannot run stream_chat_v1 In getstream-flutter/packages/stream_chat_v1, I typed flutter run, but I cannot run.

    What package are you using? What version?

    I am usin flutter 2.2.2

    What platform is it about?

    • [ ] Android
    • [ ] iOS
    • [ ] Web
    • [ ] Windows
    • [x] MacOS
    • [ ] Linux

    To Reproduce Steps to reproduce the behavior:

    1. Clone this project.
    2. change directory to pakcates/stream_chat_v1 using terminal
    3. type flutter run

    Expected behavior I want to run using ios simluator.

    Screenshots If applicable, add screenshots to help explain your problem.

    โฏ flutter run                                                                                                      โ”€โ•ฏ
    Warning: You are using these overridden dependencies:
    ! stream_chat 2.0.0-nullsafety.2 from git https://github.com/GetStream/stream-chat-flutter.git at b954cc in packages/stream_chat
    ! stream_chat_flutter_core 2.0.0-nullsafety.3 from git https://github.com/GetStream/stream-chat-flutter.git at b954cc in packages/stream_chat_flutter_core
    Running "flutter pub get" in stream_chat_v1...                   2,223ms
    Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
    Running pod install...                                           2,629ms
    CocoaPods' output:
    โ†ณ
          Preparing
    
        Analyzing dependencies
    
        Inspecting targets to integrate
          Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    
        Fetching external sources
        -> Fetching podspec for `Flutter` from `Flutter`
        -> Fetching podspec for `file_picker` from `.symlinks/plugins/file_picker/ios`
        -> Fetching podspec for `flutter_app_badger` from `.symlinks/plugins/flutter_app_badger/ios`
        -> Fetching podspec for `flutter_keyboard_visibility` from `.symlinks/plugins/flutter_keyboard_visibility/ios`
        -> Fetching podspec for `flutter_local_notifications` from `.symlinks/plugins/flutter_local_notifications/ios`
        -> Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios`
        -> Fetching podspec for `image_gallery_saver` from `.symlinks/plugins/image_gallery_saver/ios`
        -> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
        -> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
        -> Fetching podspec for `photo_manager` from `.symlinks/plugins/photo_manager/ios`
        -> Fetching podspec for `share_plus` from `.symlinks/plugins/share_plus/ios`
        -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
        -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
        -> Fetching podspec for `sqlite3_flutter_libs` from `.symlinks/plugins/sqlite3_flutter_libs/ios`
        -> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
        -> Fetching podspec for `video_compress` from `.symlinks/plugins/video_compress/ios`
        -> Fetching podspec for `video_player` from `.symlinks/plugins/video_player/ios`
        -> Fetching podspec for `video_thumbnail` from `.symlinks/plugins/video_thumbnail/ios`
        -> Fetching podspec for `wakelock` from `.symlinks/plugins/wakelock/ios`
    
        Resolving dependencies of `Podfile`
    
        โ€•โ€•โ€• MARKDOWN TEMPLATE โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•
    
        ### Command
    
        ```
        /usr/local/bin/pod install --verbose
        ```
    
        ### Report
    
        * What did you do?
    
        * What did you expect to happen?
    
        * What happened instead?
    
    
        ### Stack
    
        ```
           CocoaPods : 1.10.1
                Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
            RubyGems : 3.0.3
                Host : macOS 11.4 (20F71)
               Xcode : 12.5 (12E262)
                 Git : git version 2.15.0
        Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
        Repositories :
        ```
    
        ### Plugins
    
        ```
        cocoapods-deintegrate : 1.0.4
        cocoapods-plugins     : 1.0.0
        cocoapods-search      : 1.0.0
        cocoapods-trunk       : 1.5.0
        cocoapods-try         : 1.2.0
        ```
    
        ### Podfile
    
        ```ruby
        # Uncomment this line to define a global platform for your project
        # platform :ios, '9.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
        ```
    
        ### Error
    
        ```
        LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.1/lib/ffi_c.bundle, 9): no suitable image found.  Did
        find:
        	/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.1/lib/ffi_c.bundle: mach-o, but wrong architecture
        	/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.1/lib/ffi_c.bundle: mach-o, but wrong architecture -
        	/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.1/lib/ffi_c.bundle
        /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:i
        n `require'
        /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:i
        n `require'
        /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.1/lib/ffi.rb:5:in `rescue in <top (required)>'
        /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.1/lib/ffi.rb:2:in `<top (required)>'
        /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:i
        n `require'
        /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:i
        n `require'
        /Library/Ruby/Gems/2.6.0/gems/ethon-0.14.0/lib/ethon.rb:3:in `<top (required)>'
        /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:i
        n `require'
        /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:i
        n `require'
        /Library/Ruby/Gems/2.6.0/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top (required)>'
        /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:i
        n `require'
        /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:i
        n `require'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:74:in `cdn_url?'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:36:in `create_source_with_url'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/sources_manager.rb:21:in
        `find_or_create_source_with_url'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:178:in `block in sources'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177:in `map'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:177:in `sources'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1073:in `block in
        resolve_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
        /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
        /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
        /usr/local/bin/pod:23:in `load'
        /usr/local/bin/pod:23:in `<main>'
        ```
    
        โ€•โ€•โ€• TEMPLATE END โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•
    
        [!] Oh no, an error occurred.
    
        Search for existing GitHub issues similar to yours:
        https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.1%2Fli
        b%2Fffi_c.bundle%2C+9%29%3A+no+suitable+image+found.++Did+find%3A%0A%09%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Ff
        fi-1.15.1%2Flib%2Fffi_c.bundle%3A+mach-o%2C+but+wrong+architecture%0A%09%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2F
        ffi-1.15.1%2Flib%2Fffi_c.bundle%3A+mach-o%2C+but+wrong+architecture+-+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fff
        i-1.15.1%2Flib%2Fffi_c.bundle&type=Issues
    
        If none exists, create a ticket, with the template displayed above, on:
        https://github.com/CocoaPods/CocoaPods/issues/new
    
        Be sure to first read the contributing guide for details on how to properly submit a ticket:
        https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
    
        Don't forget to anonymize any private data!
    
        Looking for related issues on cocoapods/cocoapods...
    
    Error output from CocoaPods:
    โ†ณ
        Searching for inspections failed: undefined method `map' for nil:NilClass
    
        [!] Automatically assigning platform `iOS` with version `11.0` on target `Runner` because no platform was
        specified. Please specify a platform for this target in your Podfile. See
        `https://guides.cocoapods.org/syntax/podfile.html#platform`.
    
    Error running pod install
    Error launching application on iPhone 12 Pro Max.
    

    **Logs ** Run flutter analyze and attach any output of that command below. If there are any analysis errors, try resolving them before filing this issue.

    โฏ flutter analyze                                                                                                  โ”€โ•ฏ
    Analyzing stream_chat_v1...
    
      error โ€ข The method 'pin' isn't defined for the type 'StreamSvgIcon' โ€ข lib/chat_info_screen.dart:209:34 โ€ข
             undefined_method
       info โ€ข Don't import implementation files from another package โ€ข lib/generated_plugin_registrant.dart:7:8 โ€ข
              implementation_imports
       info โ€ข Don't import implementation files from another package โ€ข lib/group_info_screen.dart:7:8 โ€ข
              implementation_imports
       info โ€ข Don't import implementation files from another package โ€ข lib/group_info_screen.dart:8:8 โ€ข
              implementation_imports
      error โ€ข The method 'pin' isn't defined for the type 'StreamSvgIcon' โ€ข lib/group_info_screen.dart:492:34 โ€ข
             undefined_method
      error โ€ข The named parameter 'pinPermissions' isn't defined โ€ข lib/main.dart:901:19 โ€ข undefined_named_parameter
      error โ€ข The named parameter 'pinPermissions' isn't defined โ€ข lib/main.dart:994:15 โ€ข undefined_named_parameter
      error โ€ข The method 'pin' isn't defined for the type 'StreamSvgIcon' โ€ข lib/pinned_messages_screen.dart:113:31 โ€ข
             undefined_method
    
    8 issues found. (ran in 11.8s)
    

    Paste the output of running flutter doctor -v here.

    โฏ flutter doctor -v                                                                                                โ”€โ•ฏ
    [โœ“] Flutter (Channel stable, 2.2.2, on macOS 11.4 20F71 darwin-arm, locale ko-KR)
        โ€ข Flutter version 2.2.2 at /Users/donghee/projects/flutter
        โ€ข Framework revision d79295af24 (9 days ago), 2021-06-11 08:56:01 -0700
        โ€ข Engine revision 91c9fc8fe0
        โ€ข Dart version 2.13.3
    
    [โœ“] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
        โ€ข Android SDK at /Users/donghee/Library/Android/sdk
        โ€ข Platform android-30, build-tools 30.0.3
        โ€ข Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
        โ€ข Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
        โ€ข All Android licenses accepted.
    
    [โœ“] Xcode - develop for iOS and macOS
        โ€ข Xcode at /Applications/Xcode.app/Contents/Developer
        โ€ข Xcode 12.5, Build version 12E262
        โ€ข CocoaPods version 1.10.1
    
    [โœ“] Chrome - develop for the web
        โ€ข Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [โœ“] Android Studio (version 4.1)
        โ€ข Android Studio at /Applications/Android Studio.app/Contents
        โ€ข Flutter plugin can be installed from:
          ๐Ÿ”จ https://plugins.jetbrains.com/plugin/9212-flutter
        โ€ข Dart plugin can be installed from:
          ๐Ÿ”จ https://plugins.jetbrains.com/plugin/6351-dart
        โ€ข Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    
    [โœ“] VS Code (version 1.56.2)
        โ€ข 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)
        โ€ข iPhone 12 Pro Max (mobile) โ€ข D46A80AF-207D-4D4B-A7FD-40A18993144F โ€ข ios            โ€ข
          com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
        โ€ข macOS (desktop)            โ€ข macos                                โ€ข darwin-arm64   โ€ข macOS 11.4 20F71 darwin-arm
        โ€ข Chrome (web)               โ€ข chrome                               โ€ข web-javascript โ€ข Google Chrome 91.0.4472.114
    
    โ€ข No issues found!
    

    Additional context Add any other context about the problem here.

    opened by dongheechoi 4
  • [leak]debounce.dart

    [leak]debounce.dart

    Hi @imtoori Each time i send a message, i get following error:

    [VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The method 'call' was called on null.
    Receiver: null
    Tried calling: call(Instance of 'ChannelState')
    #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
    #1      Function._apply (dart:core-patch/function_patch.dart:11:30)
    #2      Function.apply (dart:core-patch/function_patch.dart:34:12)
    #3      debounce.<anonymous closure>
    package:stream_chat/src/debounce.dart:21
    #4      _rootRun (dart:async/zone.dart:1182:47)
    #5      _CustomZone.run (dart:async/zone.dart:1093:19)
    #6      _CustomZone.runGuarded (dart:async/zone.dart:997:7)
    #7      _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
    #8      _rootRun (dart:async/zone.dart:1190:13)
    #9      _CustomZone.run (dart:async/zone.dart:1093:19)
    #10     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1021:23)
    #11     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
    #12     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
    #13     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
    #14     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
    
    final timer = Timer(timeout, () {
        print('debounce target $target positionalArguments $positionalArguments namedArguments $namedArguments');
        Function.apply(
          target,
          positionalArguments,
          namedArguments,
        );
      });
    

    result of the print:

    flutter: debounce target null positionalArguments [Instance of 'ChannelState'] namedArguments null
    

    I dont understand the purpose of this class, but maybe testing null value before calling `Function.apply``

    Im on last version :)

    opened by Abacaxi-Nelson 4
  • PUB GET not working stream chat persistence

    PUB GET not working stream chat persistence

    hi I add dart and flutter when I wanna use put get I will get this error

    Because stream_chat_persistence >=1.0.2-beta depends on stream_chat ^1.0.3-beta which depends on meta ^1.2.4, stream_chat_persistence >=1.0.2-beta requires meta ^1.2.4. And because every version of flutter from sdk depends on meta 1.1.8, stream_chat_persistence >=1.0.2-beta is incompatible with flutter from sdk. So, because example depends on both flutter any from sdk and stream_chat_persistence ^1.0.2-beta, version solving failed. pub get failed (1; So, because example depends on both flutter any from sdk and stream_chat_persistence ^1.0.2-beta, version solving failed.)

    this stream_chat_persistence have a problem when I remove this from package list pub get work perfectly pls help me sorry for my poor English thanks

    opened by SirMori7 4
Owner
Stream
Build scalable newsfeeds, activity streams, chat and messaging in a few hours instead of weeks
Stream
A simple chat application in flutter made with stream.

chat_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Samuel Adekunle 18 Oct 11, 2022
Flutter Chat Components for Combase โ€ข Powered By Stream

combase_flutter A new Flutter package project. Getting Started This project is a starting point for a Dart package, a library module containing code t

Stream 4 Feb 24, 2021
Examples showing how to use Rid in order to build Dart/Flutter apps integrated with Rust.

Examples showing how to use Rid in order to build Dart/Flutter apps integrated with Rust.

Thorsten Lorenz 205 Dec 24, 2022
Use dynamic and beautiful card view pagers (horizontal direction) to help you create great apps.

Use dynamic and beautiful card view pagers (horizontal direction) to help you create great apps. Preview Mobile Vertical Card Pager Web Web Link Insta

Jeongtae Kim 27 Dec 9, 2022
A simple Todo app designed to simply use GraphQL as backend and provide an easy to use UI/UX.

simple_todo_app A simple Todo app designed to simply use GraphQL as backend and provide an easy to use UI/UX. A breakdown of the project and explanati

Emir Halฤฑcฤฑ 2 Oct 9, 2022
Flutter Multichannel Packaging Detail Sample Project

Flutter ๅคšๆธ ้“ๆ‰“ๅŒ…่ฏฆ่งฃ ๅคšๆธ ้“ๆ‰“ๅŒ…ไป‹็ป ๅคšๆธ ้“ๆ‰“ๅŒ…็š„ไธป่ฆไฝœ็”จๆ˜ฏๆปก่ถณไบงๅ“็š„่ฟ่ฅ้œ€ๆฑ‚๏ผŒ็ปŸ่ฎกๆธ ้“ๅ’ŒๆดปๅŠจๆ•ˆๆžœใ€‚ ๅœจไน‹ๅ‰ๅŽŸ็”Ÿ๏ผˆAndroidใ€iOS๏ผ‰ๅผ€ๅ‘ App ๆœ‰ๅ„็งๅทฅๅ…ทๆฅ่พ…ๅŠฉๆˆ‘ไปฌๅฎŒๆˆๅคšๆธ ้“ๆ‰“ๅŒ…ใ€‚ ๅœจๆˆ‘ไปฌๅผ€ๅ‘่ฟ‡็จ‹ไธญไนŸ้œ€่ฆไธบๆธ ้“ๅŠŸ่ƒฝ่ดŸ่ดฃ๏ผŒๅŽŸ็”Ÿ็š„ๅผ€ๅ‘ๅทฅๅ…ทๅฐฑๅŸบๆœฌๆปก่ถณๆˆ‘ไปฌ่ฐƒ่ฏ•ๆธ ้“ๅŒ…ๅ†…ๅฎน๏ผŒไฝ†ๆ˜ฏๅœจ Flutt

Zero 25 Jun 27, 2022
Sample flutter app for getting started with the Amplify Flutter Library.

Amplify Flutter Example Sample flutter app for getting started with the Amplify Flutter Library. This example uses the Auth, Analytics, and Storage co

Dao Hong Vinh 10 Jan 19, 2022
This project is by taking the sample application of the

debo_eyu A new Flutter project. Any one who want to contact me, use my email [email protected] or on my telegram account using @LindaAug1 let's se

Eyosiyas Tibebu 1 Oct 15, 2021
Sample that produces the following issue with Firebase Database web in Flutter

issue_rtdb_controller_already_firing_event Sample that produces the following issue with Firebase Database web in Flutter. @firebase/database: Error:

Deepak Goyal 0 Oct 25, 2021
A sample Google Chrome browser extension built in flutter web

My Activities It is a sample Google Chrome browser extension The extension was built in Flutter Web. How to build % cd /path/to/project/root % flutter

Viktor BORBร‰LY 3 Nov 12, 2021
This is a sample Flutter Weather Forecast App for Android and iOS.

Basic Flutter (Android + iOS) App (Dart + Dio) - Weather App This is a very beginning friendly project of Flutter. A simple weather forecast App using

Hasan Abdullah 31 Nov 29, 2022
Sample project for an employee management application.

HR App Sample project for an employee management application. Getting Started Choose a storage implementation to be used. The application currently su

Pรกsztor Dรกniel 4 Jul 14, 2022
An (Sample)app that allows users to donate their pets and adopt others pets.

PetApp An (Sample)app that allows users to donate their pets and adopt others pets. About I created this app to learn more about Flutter and UI/UX in

VIDIT SINGH BRAHAMANIA 33 Oct 5, 2022
๐Ÿ’™ A simple Flutter app sample with hooks_riverpod, includes HTTP requests by dio using GitHub APIs.

?? A simple Flutter app sample with hooks_riverpod, includes HTTP requests by dio using GitHub APIs.

Kosuke Saigusa 16 Oct 13, 2022
Flutter app for collection of UI in a UIKit

Flutter UIKit The goal of this project is to provide an ultimate collection of real world app's UIs. While I built Flutter UIKit for my own needs, it

Pawan Kumar 6k Jan 1, 2023
Collection of all the widgets with their tutorial

Flutter Widgets A collection of flutter widgets with tutorials. Season 1 Episode 1 - Sized Box Episode 2 - Animated Builder Episode 3 - Draggable and

Pawan Kumar 147 Oct 4, 2022
A flutter clean architecture series, the way we build clean apps.

Flutter Clean Archeticture Series ?? "Making the world a better place" โœ… Full Articles You can check out the full Medium articles on devmuaz โœ… Branche

AbdulMuaz Aqeel 267 Jan 4, 2023
A Flutter starter-kit for production-level apps.

Flutter Starter Introduction We wanted to take Flutter a step further and accelerate the process of building production-level apps. Presenting our sol

GeekyAnts 374 Dec 30, 2022
Learn how to incorporate Firebase into our Flutter apps

Flash Chat โšก๏ธ Our Goal The objective of this tutorial is to learn how to incorporate Firebase into our Flutter apps. We'll be using Firebase Cloud Fir

null 0 Oct 27, 2021