Giter VIP home page Giter VIP logo

mixinnetwork / flutter-app Goto Github PK

View Code? Open in Web Editor NEW
277.0 277.0 60.0 20.31 MB

๐Ÿ’ป Mixin Messenger desktop app for macOS, iPadOS, Linux, and Windows powered by Flutter/Dart.

Home Page: https://messenger.mixin.one

License: GNU General Public License v3.0

Kotlin 0.01% Swift 0.32% Objective-C 0.01% Dart 97.58% HTML 0.04% Ruby 0.10% Shell 0.02% CMake 0.64% C++ 1.15% C 0.06% Inno Setup 0.08%
end-to-end-encryption flutter messenger

flutter-app's People

Contributors

boyan01 avatar cedricfung avatar crossle avatar dependabot[bot] avatar lyricat avatar seniorzhai avatar tougee avatar yeungkc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter-app's Issues

Does this project support iOS and Android?

I can run in macos mode.
I tried to run in the emulator with "flutter run -d iPhone" but got the error that iPhone is not supported.
So I opened the project settings with Xcode and added an iPhone option to the supportable devices.
After running again, the error you get is

    35 warnings generated.
    ld: in /Users/wantg/Apps/flutter/.pub-cache/hosted/pub.dartlang.org/ogg_opus_player-0.3.1/ios/Libs/libopusfile.a(opusfile.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/wantg/tmp/flutter-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.4.99. (in target 'sqlite3'
    from project 'Pods')
    /Users/wantg/tmp/flutter-app/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.4.99. (in target
    'libPhoneNumber-iOS' from project 'Pods')

    Result bundle written to path:
    	/var/folders/42/8_df3lr9183bzdgkhdg8s1cw0000gp/T/flutter_tools.DLLkRo/flutter_ios_build_temp_dirkPraqT/temporary_xcresult_bundle


Error (Xcode): In /Users/wantg/Apps/flutter/.pub-cache/hosted/pub.dartlang.org/ogg_opus_player-0.3.1/ios/Libs/libopusfile.a(opusfile.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64


Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).

Group avatar click operation

On the group chat page, when clicking on the group avatar, will display the actions of the group, maybe consider list participants of group.

flutter_localizations intl dependency version

When I build in my Ubuntu server, it shows errors.

Because flutter_app depends on flutter_localizations from sdk which depends on intl 0.18.0, intl 0.18.0 is required.
So, because flutter_app depends on intl ^0.17.0, version solving failed.

Server version:

  • Ubuntu Linux 22.04(ARM)

flutter version:

flutter --version
Flutter 3.8.0-13.0.pre.54 โ€ข channel master โ€ข https://github.com/flutter/flutter.git
Framework โ€ข revision 22e17bb710 (73 minutes ago) โ€ข 2023-02-16 03:46:23 -0500
Engine โ€ข revision ea1d087c49
Tools โ€ข Dart 3.0.0 (build 3.0.0-241.0.dev) โ€ข DevTools 2.21.1

Bug report: no content in the window

image

icon path: /usr/lib/mixin_desktop/data/flutter_assets/assets/icons/windows_app_icon.pngsystem_tray_plugin_class_init klass: 0x1b27dd0
system_tray_plugin_init self: 0x1c008d0

file /usr/lib/mixin_desktop/data/flutter_assets/assets/icons/windows_app_icon.png is exists

from:

 ~ $ cat /etc/lsb-release                                       
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"

macOS run error

image

flutter run -d macOS

Launching lib/main.dart on macOS in debug mode...
objc[34838]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1f77fa098) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1046082c8). One of the two will be used. Which one is undefined.
objc[34838]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1f77fa0e8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104608318). One of the two will be used. Which one is undefined.
objc[34838]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1f77f9eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1046084f8). One of the two will be used. Which one is undefined.
objc[34838]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1f77f9f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104608548). One of the two will be used. Which one is undefined.
objc[34838]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1f77f9f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104608598). One of the two will be used. Which one is undefined.
objc[34838]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1f77f9fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1046085e8). One of the two will be used. Which one is undefined.
objc[34838]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1f77f9ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104608638). One of the two will be used. Which one is undefined.
objc[34838]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1f77fa040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104608688). One of the two will be used. Which one is undefined.
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00008103-001A44AA2EF3001E }
{ platform:macOS, arch:x86_64, id:00008103-001A44AA2EF3001E }
/Users/yuchang.xu/workspace/flutter-app/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.6, but the range of supported deployment target versions is 10.9 to 12.2. (in target 'sqlite3' from project 'Pods')
Building macOS application...                                           
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image-4.2.1/lib/src/extended_image.dart:774:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addObserver(this);
                   ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image-4.2.1/lib/src/extended_image.dart:782:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.removeObserver(this);
                   ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image-4.2.1/lib/src/extended_image.dart:863:26: Warning: Operand of null-aware operation '!' has type 'SemanticsBinding' which excludes null.
 - 'SemanticsBinding' is from 'package:flutter/src/semantics/binding.dart' ('../../flutter-2/packages/flutter/lib/src/semantics/binding.dart').
        SemanticsBinding.instance!.accessibilityFeatures.invertColors;
                         ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/platform.dart:26:21: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
 - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter-2/packages/flutter/lib/src/painting/binding.dart').
    PaintingBinding.instance?.imageCache?.clear();
                    ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/platform.dart:27:21: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
 - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter-2/packages/flutter/lib/src/painting/binding.dart').
    PaintingBinding.instance?.imageCache?.clearLiveImages();
                    ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/platform.dart:40:28: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
 - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter-2/packages/flutter/lib/src/painting/binding.dart').
    return PaintingBinding.instance?.imageCache;
                           ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/extended_image_provider.dart:28:30: Warning: Operand of null-aware operation '!' has type 'PaintingBinding' which excludes null.
 - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter-2/packages/flutter/lib/src/painting/binding.dart').
      return PaintingBinding.instance!.imageCache!;
                             ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/extended_image_provider.dart:28:40: Warning: Operand of null-aware operation '!' has type 'ImageCache' which excludes null.
 - 'ImageCache' is from 'package:flutter/src/painting/image_cache.dart' ('../../flutter-2/packages/flutter/lib/src/painting/image_cache.dart').
      return PaintingBinding.instance!.imageCache!;
                                       ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/extended_image_provider.dart:97:39: Warning: Operand of null-aware operation '!' has type 'PaintingBinding' which excludes null.
 - 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('../../flutter-2/packages/flutter/lib/src/painting/binding.dart').
      () => load(key, PaintingBinding.instance!.instantiateImageCodec),
                                      ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/flutter_hooks-0.18.2+1/lib/src/widgets_binding_observer.dart:42:29: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
    _state = WidgetsBinding.instance!.lifecycleState;
                            ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/flutter_hooks-0.18.2+1/lib/src/widgets_binding_observer.dart:43:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.addObserver(this);
                   ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/flutter_hooks-0.18.2+1/lib/src/widgets_binding_observer.dart:52:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.removeObserver(this);
                   ^
../../flutter-2/.pub-cache/git/bitsdojo_window-78faaa6440c7fee146258bb0ef3336c33ed4555d/bitsdojo_window_linux/lib/src/bitsdojo_window_linux_real.dart:14:20: Warning: Operand of null-aware operation '!' has type
'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.waitUntilFirstFrameRasterized.then((value) {
                   ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_macos-0.1.0/lib/src/bitsdojo_window_macos_real.dart:13:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.waitUntilFirstFrameRasterized.then((value) {
                   ^
../../flutter-2/.pub-cache/git/bitsdojo_window-78faaa6440c7fee146258bb0ef3336c33ed4555d/bitsdojo_window_windows/lib/src/bitsdojo_window_windows_real.dart:17:20: Warning: Operand of null-aware operation '!' has type
'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance!.waitUntilFirstFrameRasterized.then((value) {
                   ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window-0.1.1+1/lib/src/widgets/mouse_state_builder.dart:60:30: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter-2/packages/flutter/lib/src/widgets/binding.dart').
              WidgetsBinding.instance!.addPostFrameCallback((_) {
                             ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart:126:28: Warning: Operand of null-aware operation '?.' has type 'RendererBinding' which excludes null.
 - 'RendererBinding' is from 'package:flutter/src/rendering/binding.dart' ('../../flutter-2/packages/flutter/lib/src/rendering/binding.dart').
    assert(RendererBinding.instance?.renderView != null);
                           ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart:127:50: Warning: Operand of null-aware operation '!' has type 'RendererBinding' which excludes null.
 - 'RendererBinding' is from 'package:flutter/src/rendering/binding.dart' ('../../flutter-2/packages/flutter/lib/src/rendering/binding.dart').
    var clipRect = Offset.zero & RendererBinding.instance!.renderView.size;
                                                 ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart:170:26: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../flutter-2/packages/flutter/lib/src/scheduler/binding.dart').
        SchedulerBinding.instance!.addPostFrameCallback((timeStamp) {
                         ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart:193:22: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../flutter-2/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!
                     ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.2.3/lib/src/scrollable_positioned_list.dart:439:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../flutter-2/packages/flutter/lib/src/scheduler/binding.dart').
      SchedulerBinding.instance!.addPostFrameCallback((_) {
                       ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.2.3/lib/src/scrollable_positioned_list.dart:486:26: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../flutter-2/packages/flutter/lib/src/scheduler/binding.dart').
        SchedulerBinding.instance!.addPostFrameCallback((_) {
                         ^
../../flutter-2/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.2.3/lib/src/positioned_list.dart:312:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
 - 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../flutter-2/packages/flutter/lib/src/scheduler/binding.dart').
      SchedulerBinding.instance!.addPostFrameCallback((_) {
                       ^
Syncing files to device macOS...                                   145ms

Flutter run key commands.
r Hot reload. ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

๐Ÿ’ช Running with sound null safety ๐Ÿ’ช

An Observatory debugger and profiler on macOS is available at: http://127.0.0.1:52297/oL0A4xVSn5E=/

โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
The following assertion was thrown building Builder(dirty, dependencies: [MediaQuery,
_InheritedProviderScope<SettingCubit?>]):
invalid value for brightness. SettingState(null, null, null, null, null, null, null)
'package:flutter_app/bloc/setting_cubit.dart':
Failed assertion: line 127 pos 16: 'false'

The relevant error-causing widget was:
  MaterialApp MaterialApp:file:///Users/yuchang.xu/workspace/flutter-app/lib/app.dart:200:18

When the exception was thrown, this was the stack:
#2      SettingCubit.brightness (package:flutter_app/bloc/setting_cubit.dart:127:16)
#3      _App.build.<anonymous closure> (package:flutter_app/app.dart:225:64)
#4      _MaterialAppState._materialBuilder.<anonymous closure> (package:flutter/src/material/app.dart:896:39)
#5      Builder.build (package:flutter/src/widgets/basic.dart:7371:48)
#6      StatelessElement.build (package:flutter/src/widgets/framework.dart:4876:49)
#7      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4806:15)
#8      Element.rebuild (package:flutter/src/widgets/framework.dart:4529:5)
#9      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4787:5)
#10     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4781:5)
...     Normal element mounting (92 frames)
#102    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3817:16)
#103    Element.updateChild (package:flutter/src/widgets/framework.dart:3545:20)
#104    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4832:16)
#105    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4977:11)
#106    Element.rebuild (package:flutter/src/widgets/framework.dart:4529:5)
#107    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2659:19)
#108    WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:891:21)
#109    RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:370:5)
#110    SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1146:15)
#111    SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1083:9)
#112    SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:864:7)
(elided 13 frames from class _AssertionError, class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
The Flutter DevTools debugger and profiler on macOS is available at: http://127.0.0.1:9102?uri=http://127.0.0.1:52297/oL0A4xVSn5E=/

Build in windows error

run flutter build windows --release shows error message:

$ flutter build windows --release

 Building with sound null safety 

lib/widgets/user/pin_verification_dialog.dart(79,7): error G76B49859: The non-abstract class '_PinInputLayoutState' is missing implementations for these members: [D:\Workspace\Flutter\github.com\MixinNetwork\flutter-app\build\windows\flutter\flutter_assemble.vcxproj]
D:\VisualStudio\2022\Msbuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(245,5): error MSB8066: โ€œD:\Workspace\Flutter\github.com\MixinNetwork\flutter-app\build\windows\CMakeFiles\c0e4f736b43a01faa3fffb630652de81\flutter_windows.dll.rule;D:\Workspace\Flutter\github.com\MixinNetwork\flutter-app\build\windows\CMakeFiles\4175d989b242a31883fa2f97dc05ff23\flutter_assemble.ruleโ€็š„่‡ชๅฎšไน‰็”Ÿๆˆๅทฒ้€€ๅ‡บ๏ผŒไปฃ็ ไธบ1ใ€‚[D:\Workspace\Flutter\github.com\MixinNetwork\flutter-app\build\windows\flutter\flutter_assemble.vcxproj]
Building Windows application...                                         
Build process failed.

run flutter doctor shows:

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[โˆš] Flutter (Channel master, 3.5.0-10.0.pre.168, on Microsoft Windows [็‰ˆๆœฌ 10.0.19042.1466], locale zh-CN)

run git status shows:

$ git status
On branch main

build failed on Ubuntu 22.04

CMake Error at /snap/flutter/130/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
A required package was not found
Call Stack (most recent call first):
/snap/flutter/130/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
flutter/ephemeral/.plugin_symlinks/desktop_webview_window/linux/CMakeLists.txt:10 (pkg_check_modules)

Building Linux application...
Unable to generate build files

[desktop] Build in windows error

image

ไธฅ้‡ๆ€ง ไปฃ็  ่ฏดๆ˜Ž ้กน็›ฎ ๆ–‡ไปถ ่กŒ ็ฆๆญขๆ˜พ็คบ็Šถๆ€
้”™่ฏฏ C1900 โ€œP1โ€(็ฌฌโ€œ20211014โ€็‰ˆ)ๅ’Œโ€œP2โ€(็ฌฌโ€œ20210202โ€็‰ˆ)ไน‹้—ด Il ไธๅŒน้… ogg_opus_player D:\workspace\github\flutter-app\build\windows\plugins\ogg_opus_player\shared\LINK 1

[โˆš] Flutter (Channel stable, 3.0.1, on Microsoft Windows [็‰ˆๆœฌ 10.0.17763.2928], locale zh-CN)
    โ€ข Flutter version 3.0.1 at D:\flutter_3.0.1
    โ€ข Upstream repository https://github.com/flutter/flutter.git
    โ€ข Framework revision fb57da5f94 (2 weeks ago), 2022-05-19 15:50:29 -0700
    โ€ข Engine revision caaafc5604
    โ€ข Dart version 2.17.1
    โ€ข DevTools version 2.12.2

[X] Android toolchain - develop for Android devices
    X 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/windows#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.


[โˆš] Chrome - develop for the web
    โ€ข Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[โˆš] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.15)
    โ€ข Visual Studio at d:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    โ€ข Visual Studio Community 2019 version 16.11.32510.428
    โ€ข Windows 10 SDK version 10.0.19041.0

[!] 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/windows#android-setup for detailed instructions).

[โˆš] VS Code (version 1.67.2)
    โ€ข VS Code at C:\Users\yuchang.xu\AppData\Local\Programs\Microsoft VS Code
    โ€ข Flutter extension version 3.42.0

[โˆš] Connected device (3 available)
    โ€ข Windows (desktop) โ€ข windows โ€ข windows-x64    โ€ข Microsoft Windows [็‰ˆๆœฌ 10.0.17763.2928]
    โ€ข Chrome (web)      โ€ข chrome  โ€ข web-javascript โ€ข Google Chrome 101.0.4951.67
    โ€ข Edge (web)        โ€ข edge    โ€ข web-javascript โ€ข Microsoft Edge 102.0.1245.30

[โˆš] HTTP Host Availability
    โ€ข All required HTTP hosts are available

flutter run -d windows failed

operate system: windows 11 21H2 (22000.739)

info:
flutter run -d windows Launching lib\main.dart on Windows in debug mode... lib/utils/system/tray.dart(44,11): error G837C20CB: 'MenuItem' is imported from both 'package:flutter/src/widgets/platform_menu_bar.dart' and 'package:system_tray/src/menu_item.dart'. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] lib/utils/system/tray.dart(51,11): error G837C20CB: 'MenuItem' is imported from both 'package:flutter/src/widgets/platform_menu_bar.dart' and 'package:system_tray/src/menu_item.dart'. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window-0.1.1+1/lib/src/widgets/mouse_state_builder.dart(60,30): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_hooks-0.18.2+1/lib/src/widgets_binding_observer.dart(42,29): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_hooks-0.18.2+1/lib/src/widgets_binding_observer.dart(43,20): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_hooks-0.18.2+1/lib/src/widgets_binding_observer.dart(52,20): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/git/bitsdojo_window-78faaa6440c7fee146258bb0ef3336c33ed4555d/bitsdojo_window_windows/lib/src/bitsdojo_window_windows_real.dart(17,20): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/bitsdojo_window_macos-0.1.0/lib/src/bitsdojo_window_macos_real.dart(13,20): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/git/bitsdojo_window-78faaa6440c7fee146258bb0ef3336c33ed4555d/bitsdojo_window_linux/lib/src/bitsdojo_window_linux_real.dart(14,20): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.2.3/lib/src/scrollable_positioned_list.dart(439,24): warning GBC99161D: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.2.3/lib/src/scrollable_positioned_list.dart(486,26): warning GBC99161D: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/system_tray-0.1.0/lib/src/tray.dart(9,1): error G837C20CB: 'MenuItem' is imported from both 'package:flutter/src/widgets/platform_menu_bar.dart' and 'package:system_tray/src/menu_item.dart'. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-4.2.1/lib/src/extended_image.dart(774,20): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-4.2.1/lib/src/extended_image.dart(782,20): warning GBC99161D: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-4.2.1/lib/src/extended_image.dart(863,26): warning GBC99161D: Operand of null-aware operation '!' has type 'SemanticsBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/scrollable_positioned_list-0.2.3/lib/src/positioned_list.dart(312,24): warning GBC99161D: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/extended_image_provider.dart(28,30): warning GBC99161D: Operand of null-aware operation '!' has type 'PaintingBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/extended_image_provider.dart(28,40): warning GBC99161D: Operand of null-aware operation '!' has type 'ImageCache' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/extended_image_provider.dart(97,39): warning GBC99161D: Operand of null-aware operation '!' has type 'PaintingBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/platform.dart(26,21): warning GBC99161D: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/platform.dart(27,21): warning GBC99161D: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.2/lib/src/platform.dart(40,28): warning GBC99161D: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart(126,28): warning GBC99161D: Operand of null-aware operation '?.' has type 'RendererBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart(127,50): warning GBC99161D: Operand of null-aware operation '!' has type 'RendererBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart(170,26): warning GBC99161D: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart(193,22): warning GBC99161D: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null. [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: ๏ฟฝ๏ฟฝD:\playhouse\labs\flutter-app-0.22.0\build\windows\CMakeFiles\17e6e1763169a013a4414284245f23b3\flutter_windows.dll.rule;D:\playhouse\labs\flutter-app-0.22.0\build\windows\CMakeFiles\2e846aa6cc3048fbc5844e1f9953ea90\flutter_assemble.rule๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝิถ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝหณ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝฮช 1๏ฟฝ๏ฟฝ [D:\playhouse\labs\flutter-app-0.22.0\build\windows\flutter\flutter_assemble.vcxproj] Building Windows application... Exception: Build process failed.

building on linux / debian requires obsolete package

Hi,

I wanted to try out the Mixin desktop app.

On the current debian stable branch, the dependencies in the readme readme are not available. Both packages, libappindicator3-dev and gir1.2-appindicator3-0.1 are listed as obsolete packages.
They state that "debian is using libayatana-appindicator as the successor of libappindicator."

As of right now, I am unable to flutter build linux --release since "A required package was not found" which I guess is this app-indicator.

I'd really like to try out the Mixin flutter app.

Will you update to libayatana-appindicator, or what will be done?

Thanks for considering.

Keep up the great work!

Plugin support

Some plugin does not support desktop

  • 1. webview plugin
  • 2. video player plugin
  • 3. audio player support opus codec ogg file
  • 4. multimedia clipboard
  • 5. native context menu
  • 6. record voice message.
  • 7. Support send HEIC photo
  • 8. Edit image
  • 9. WebRTC support
  • 10. Markdown support

Unit testing

We should add test for all send message logic

iOS simulator

I have been trying to run in ios simulator but i get the following error

Running "flutter pub get" in flutter-app-main...                    6.0s
Launching lib/main.dart on iPhone 13 Pro Max in debug mode...
Running pod install...                                              6.3s
Running Xcode build...                                                  
Xcode build done.                                            4.7s
Failed to build iOS app
Error output from Xcode build:
โ†ณ
    2022-09-02 20:29:20.564 xcodebuild[70500:572111] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension
    Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-09-02 20:29:20.564 xcodebuild[70500:572111] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension
    Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    xcodebuild: error: Unable to find a destination matching the provided destination specifier:
                { id:1E575BC0-11E4-4483-AAFA-17661EDC9A4A }

        Available destinations for the "Runner" scheme:
                { platform:iOS Simulator, id:7A3A6E9C-C447-4A46-AD7A-452456AA5CB4, OS:15.5, name:iPad (9th generation) }
                { platform:iOS Simulator, id:D94B45E9-B22B-4DC4-AE7E-CA336A59EC58, OS:15.5, name:iPad Air (5th generation) }
                { platform:iOS Simulator, id:E8567A43-E5EF-4639-94B5-8699169D0FBC, OS:15.5, name:iPad Pro (9.7-inch) }
                { platform:iOS Simulator, id:56CEF9D4-E097-4A34-A78A-5E5B6F00092F, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }
                { platform:iOS Simulator, id:6EB84DF9-D1E5-4BDE-8B90-A1947AF57CA2, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }
                { platform:iOS Simulator, id:14CBE9D3-C878-46A4-9479-C8F0D76FDA21, OS:15.5, name:iPad mini (6th generation) }

        Ineligible destinations for the "Runner" scheme:
                { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
                { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }

Could not build the application for the simulator.
Error launching application on iPhone 13 Pro Max.

Cant start

$ flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[โœ“] Flutter (Channel stable, 2.10.4, on macOS 12.3 21E230 darwin-x64, locale en-CN)
[โœ—] 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 13.3)
    โœ— CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[โœ“] Chrome - develop for the web
[!] Android Studio (not installed)
[โœ“] VS Code (version 1.66.0)
[!] Proxy Configuration
    ! NO_PROXY is not set
[โœ“] Connected device (2 available)
[โ˜ ] HTTP Host Availability (the doctor check crashed)
    โœ— Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    โœ— HandshakeException: Connection terminated during handshake

! Doctor found issues in 5 categories.

$ flutter run -d macOS

No devices found with name or id matching 'macOS'

$ flutter run

Warning: You are using these overridden dependencies:
! bitsdojo_window_linux 0.1.1 from git https://github.com/MixinNetwork/bitsdojo_window.git at 78faaa in bitsdojo_window_linux
! bitsdojo_window_windows 0.1.0 from git https://github.com/MixinNetwork/bitsdojo_window.git at 78faaa in bitsdojo_window_windows
Invalid plugin specification ogg_opus_player.
Invalid "linux" plugin specification.
Invalid "windows" plugin specification.

[desktop] Build app error

git clone then flutter run -d macOS

Invalid plugin specification ogg_opus_player.
Invalid "linux" plugin specification.
Invalid "windows" plugin specification.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.