iampawan / flutterwhatsappclone Goto Github PK
View Code? Open in Web Editor NEWBuilding a WhatsApp Clone in Flutter.
Building a WhatsApp Clone in Flutter.
What are the features currently supported?
Does it need a backend server?
uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [:camera] C:\Users\vinay\Desktop\flutterprojects\whats_app\build\camera\intermediates\library_manifest\debug\AndroidManifest.xml as the library might be using APIs not available in 16 Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 21, or use tools:overrideLibrary="io.flutter.plugins.camera" to force usage (may lead to runtime failures)
what could be the problem... and also i have changed the minSDKversion... but no changes...
hi/ i have a question?
Can with Flutter create a image processing applications?
In different uses like color combination and camera processing & etc ?
Is there a limit to this?
Thanks
Hi,
I tried to clone the git into my directory and build it. Here is what I got:
Xcode's output:
error: Multiple commands produce
'/Users/andreasditler/Savanton/Andi/bitbucket/FlutterWhatsAppClone/build/ios
/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework':
1) Target 'Runner' has copy command from
'/Users/andreasditler/Savanton/Andi/bitbucket/FlutterWhatsAppClone/ios/Flutt
er/Flutter.framework' to
'/Users/andreasditler/Savanton/Andi/bitbucket/FlutterWhatsAppClone/build/ios
/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'
2) That command depends on command in Target 'Runner': script phase “[CP]
Embed Pods Frameworks”
warning: ignoring duplicated output file:
'/Users/andreasditler/Savanton/Andi/bitbucket/FlutterWhatsAppClone/build/ios
/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework' in shell
script build phase '[CP] Embed Pods Frameworks'. This warning represents an
extremely serious project misconfiguration and will likely cause some shell
scripts in your project to be skipped entirely, leading to other build
failures or missing files in the build directory. This will be a hard error
in the future. (in target 'Runner')
note: Using new build systemnote: Planning buildnote: Constructing build
description
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
Flutter doctor is inconspicuous:
MyMac:FlutterWhatsAppClone methylester$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.38.1)
[✓] Connected device (1 available)
• No issues found!
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_platform_interface-2.1.0/lib/messages.dart:143:13: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
FAILURE: Build failed with an exception.
Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 58s
Exception: Gradle task assembleDebug failed with exit code 1
when i switch from camera tab( 0 ) to chats tab( 1 ). this is fine. but when i change from tab 0 to 2nd or 3rd tab app crashes. can you suggest a solution.
works on an ANDROID phone.
But crashes when I try to use Camera on iPHONE 8.
//=======================================
Launching lib/main.dart on Vyiphone8 in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 38S4247WBZ
Starting Xcode build...
Xcode build done.
Installing and launching...
Traceback (most recent call last):
File "", line 1, in
File "/Users/vyoumans/anaconda2/lib/python2.7/copy.py", line 52, in
import weakref
File "/Users/vyoumans/anaconda2/lib/python2.7/weakref.py", line 14, in
from _weakref import (
ImportError: cannot import name _remove_dead_weakref
Syncing files to device Vyiphone8...
Lost connection to device.
works on an ANDROID phone.
But crashes when I try to use Camera on iPHONE X.
in main.dart file:
cameras = await availableCameras();
When I print the cameras.length that result 0.
I hope someone can help me.
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following RangeError was thrown building NotificationListener:
flutter: RangeError (index): Invalid value: Valid value range is empty: 0
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #0 List.[] (dart:core/runtime/libgrowable_array.dart:141:60)
flutter: #1 CameraScreenState.initState (package:flutter_what_app/pages/camera_screen.dart:23:44)
flutter: #2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3743:58)
flutter: #3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3609:5)
flutter: #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2899:14)
flutter: #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2702:12)
flutter: #6 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4646:14)
flutter: #7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2899:14)
flutter: #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2702:12)
flutter: #9 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3645:16)
flutter: #10 Element.rebuild (package:flutter/src/widgets/framework.dart:3487:5)
flutter: #11 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3614:5)
flutter: #12 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3609:5)
flutter: #13 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2899:14)
flutter: #14 Element.updateChild (package:flutter/src/widgets/framework.dart:2702:12)
flutter: #15 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3645:16)
flutter: #16 Element.rebuild (package:flutter/src/widgets/framework.dart:3487:5)
flutter: #17 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3614:5)
flutter: #18 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3609:5)
flutter: #19 ParentDataElement.mount (package:flutter/src/widgets/framework.dart:3947:11)
flutter: #20 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2899:14)
flutter: #21 Element.updateChild (package:flutter/src/widgets/framework.dart:2702:12)
flutter: #22 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3645:16)
flutter: #23 Element.rebuild (package:flutter/src/widgets/framework.dart:3487:5)
flutter: #24 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3614:5)
flutter: #25 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3761:11)
flutter: #26 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3609:5)
flutter: #27 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2899:14)
flutter: #28 Element.updateChild (package:flutter/src/widgets/framework.dart:2702:12)
flutter: #29 SliverMultiBoxAdaptorElement.updateChild (package:flutter/src/widgets/sliver.dart:744:36)
flutter: #30 SliverMultiBoxAdaptorElement.createChild. (package:flutter/src/widgets/sliver.dart:729:20)
flutter: #31 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2214:19)
flutter: #32 SliverMultiBoxAdaptorElement.createChild (package:flutter/src/widgets/sliver.dart:722:11)
flutter: #33 RenderSliverMultiBoxAdaptor._createOrObtainChild. (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:254:23)
flutter: #34 RenderObject.invokeLayoutCallback. (package:flutter/src/rendering/object.dart:1666:58)
flutter: #35 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:740:15)
flutter: #36 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:1666:13)
flutter: #37 RenderSliverMultiBoxAdaptor._createOrObtainChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:243:5)
flutter: #38 RenderSliverMultiBoxAdaptor.insertAndLayoutLeadingChild (package:flutter/src/rendering/sliver_multi_box_adaptor.dart:382:5)
flutter: #39 RenderSliverFixedExtentBoxAdaptor.performLayout (package:flutter/src/rendering/sliver_fixed_extent_list.dart:184:31)
flutter: #40 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
flutter: #41 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:285:13)
flutter: #42 RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1008:12)
flutter: #43 RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:932:20)
flutter: #44 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1445:7)
flutter: #45 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:709:18)
flutter: #46 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:270:19)
flutter: #47 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:627:13)
flutter: #48 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
flutter: #49 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
flutter: #50 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
flutter: #51 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
flutter: #52 _invoke (dart:ui/hooks.dart:120:13)
flutter: #53 _drawFrame (dart:ui/hooks.dart:109:3)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
flutter: Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
flutter: Another exception was thrown: 'package:flutter/src/rendering/sliver_multi_box_adaptor.dart': Failed assertion: line 215 pos 16: 'indexOf(child) > index': is not true.
flutter: Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 2218 pos 20: '_debugCurrentBuildTarget == context': is not true.
flutter: Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#9b6a0 NEEDS-LAYOUT NEEDS-PAINT
flutter: Another exception was thrown: RenderBox was not laid out: RenderErrorBox#cbb6d NEEDS-LAYOUT NEEDS-PAINT
Compiler message:
lib/pages/camera_screen.dart:39:27: Error: The getter 'initialized' isn't defined for the class 'CameraValue'.
FAILURE: Build failed with an exception.
Where:
Script '/Users/aa/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 665
What went wrong:
Execution failed for task ':app:compileflutterBuildDebugX86'.
Process 'command '/Users/aa/development/flutter/bin/flutter'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 25s
Finished with error: Gradle task assembleDebug failed with exit code 1
The lower bound of "sdk: '>=2.7.0 <3.0.0'" must be 2.12.0'
or higher to enable null safety.
The current Dart SDK (3.1.0) only supports null safety.
For details, see https://dart.dev/null-safety
Camera preview only available at the moment. Can anyone improve such a feature too?
Hi pawan, im new one in flutter, so i want to know that UI is working in Android. Is same UI working in Ios device.
Hi,
I try to run your code but emulator camera not started. below shown output error. My Android version lollipop 5.2 and SDK version 21.
W/LegacyRequestMapper( 2975): convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
W/LegacyMetadataMapper( 2975): convertAfModeToLegacy - ignoring unsupported mode 4, defaulting to fixed
W/LegacyRequestMapper( 2975): convertRequestToMetadata - Ignoring android.lens.focusDistance false, only 0.0f is supported
D/ ( 2975): HostConnection::get() New Host Connection established 0xb3cf1510, tid 2990
I/CameraDeviceState( 2975): Legacy camera service transitioning to state CAPTURING
D/ ( 2975): HostConnection::get() New Host Connection established 0xae85a1a0, tid 2989
is there install documents any where?
I want the icon in fab to change when switching fragments? I hope the tutorial will continue :) thanks
Running "flutter pub get" in mesenger...
The current Flutter SDK version is 1.9.1+hotfix.6.
Because mesenger depends on camera >=0.5.7+2 which requires Flutter SDK version >=1.10.0 <2.0.0, version solving failed.
pub get failed (1)
I made a project that has no validity, and what should I do in an emulator for such a page?
我现在用的最新的studio和最新的dart flutter sdk ,在github上找的项目都打不开
报错都是这个,我点了packageget update都无反应,麻烦楼主看看
Your application could not be compiled, because its dependencies could not be established.
The following Dart file:
E:\YangChi\githubDownLoad\FlutterApp\lib\official\OfficialNetWorkPage.dart
...refers, in an import, to the following library:
package:http/http.dart
That library is in a package that is not known. Maybe you forgot to mention it in your pubspec.yaml file?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.