Flutter Heroes
25.8K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

Flutter multi-Language app with multiple page. (Internation­alizing Flutter apps)
Hello to all! I am creating a multi-language application. However, I do not find a tutorial on the web that would explain how to do it. I found tutorials to make a multi-language application for one page, but for many, I did not find. Do you have any suggestions? I want to detect the device

June 26, 2019 at 03:02PM by Pascal Fournier
https://ift.tt/2X9JqnD
New post on /r/flutterdev subreddit:

<b>Sodium / Xcode 10</b>
Is there a known issue with flutter_sodium and Xcode 10? Or is there something else at play? I can't seem to find anything about it and all the workarounds I find fail to get me past this error:<pre>warning: no rule to process file '$FLUTTER_HOME/.pub-cache/hosted/pub.dartlang.org/flutter_sodium-0.0.9/ios/Classes/libsodium-ios/lib/libsodium.a' of type 'archive.ar' for architecture 'x86_64' (in target 'flutter_sodium') /Users/username/bin/flutter/1.7.2/.pub-cache/hosted/pub.dartlang.org/flutter_sodium-0.0.9/ios/Classes/SwiftFlutterSodiumPlugin.swift:1358:50: error: cannot convert value of type 'UnsafeMutablePointer<_>' to expected argument type 'OpaquePointer?' flutter_sodium.crypto_generichash_init(statePtr, keyPtr, key.count, outlen) ^~~~~~~~ /Users/username/bin/flutter/1.7.2/.pub-cache/hosted/pub.dartlang.org/flutter_sodium-0.0.9/ios/Classes/SwiftFlutterSodiumPlugin.swift:1364:48: error: cannot convert value of type 'UnsafeMutablePointer<_>' to expected argument type 'OpaquePointer?' flutter_sodium.crypto_generichash_init(statePtr, nil, 0, outlen) ^~~~~~~~ /Users/username/bin/flutter/1.7.2/.pub-cache/hosted/pub.dartlang.org/flutter_sodium-0.0.9/ios/Classes/SwiftFlutterSodiumPlugin.swift:1378:50: error: cannot convert value of type 'UnsafeMutablePointer<_>' to expected argument type 'OpaquePointer?' flutter_sodium.crypto_generichash_update(statePtr, iPtr, CUnsignedLongLong(i.count)) ^~~~~~~~ /Users/username/bin/flutter/1.7.2/.pub-cache/hosted/pub.dartlang.org/flutter_sodium-0.0.9/ios/Classes/SwiftFlutterSodiumPlugin.swift:1394:49: error: cannot convert value of type 'UnsafeMutablePointer<_>' to expected argument type 'OpaquePointer?' flutter_sodium.crypto_generichash_final(statePtr, outPtr, outlen) </pre>As suggested, I've added SWIFT_VERSION to the Podfile, removed Podfile.lock and rebuilt. I've removed ios and rebuilt it with flutter create.<pre>[&#10003;] Flutter (Channel master, v1.7.9-pre.6, on Mac OS X 10.14.6 18G29g, locale en-US) • Flutter version 1.7.9-pre.6 at /Users/username/bin/flutter/1.7.2 • Framework revision bb6c3f8131 (3 days ago), 2019-06-22 19:30:24 -0700 • Engine revision a41243dcac • Dart version 2.4.0 [&#10003;] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/username/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.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_152-release-1343-b01) • All Android licenses accepted. [&#10003;] Xcode - develop for iOS and macOS (Xcode 10.2.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.2.1, Build version 10E1001 • CocoaPods version 1.7.2 [&#10003;] iOS tools - develop for iOS devices • ios-deploy 1.9.4 [&#10003;] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [&#10003;] Android Studio (version 3.4) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 36.1.1 • Dart plugin version 183.6270 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01) [&#10003;] Android Studio • Android Studio at /Applications/Android Studio 3.5 Preview.app/Contents • Flutter plugin version 36.0.1 • Dart plugin version 191.7830 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) [&#10003;] IntelliJ IDEA Ultimate Edition (version 2018.3) • IntelliJ at /Applications/IntelliJ IDEA.app • Flutter plugin version 29.0.2 • Dart plugin version 181.4203.498 [&#10003;] VS Code (version 1.35.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.1.0 [&#10003;] Connected device (3 available) • iPhone X • • ios • com.apple.CoreSimulator.SimRuntime.iOS-11-3 (simulator) • macOS • macOS • darwin-x64 • Mac…
New post on /r/flutterdev subreddit:

What's the difference between Google's Provider and Bloc?
What's the difference between Google's Provider and Bloc?What are the pros and cons? What do I miss I if use provider?I thought that provider (3.0.0) was like ScopedModel and Bloc together.

June 26, 2019 at 03:05PM by D_apps
https://ift.tt/2IPfFQy
New post on Flutter Dev Google group:

How to make a pageviewer that can show first page after the last page scrolled??


June 26, 2019 at 05:50PM by Vishnu Suresh
https://ift.tt/2X3u1R3
New post on /r/flutterdev subreddit:

I am writing a book about testing Flutter apps and looking for content suggestions
Hello fellow Flutter devs!​I've started writing a free book about testing Flutter applications and I would like to hear from you if there are some areas that you think should be covered. I want to create a project from start to finish using TDD and share as much knowledge I've gained about testing (finding elements, interacting with widgets, mocking API etc.).​Are there any problems you've encountered while writing tests and didn't know how to deal with? I'm looking forward to hearing from you

June 26, 2019 at 06:23PM by krzysztof_engineer
https://ift.tt/2XCj25n
New tweet from FlutterDev:

LimitedBox gives children boundaries when parents don't.

The LimitedBox widget gives you control over widget size constraints in cases where their dimensions are unbounded.

Click here for more #WidgetoftheWeek tips &rarr; https://t.co/ZJR6JtHpDu pic.twitter.com/oFJqhmENxO— Flutter (@FlutterDev) June 26, 2019

June 26, 2019 at 09:10PM
http://twitter.com/FlutterDev/status/1143959616759291904
New post on /r/flutterdev subreddit:

<b>Dart is held back by its lack of third and first party tooling, and the Google Photos API should expose a gRPC endpoint</b>
<strong>tl;dr</strong> Writing API clients in Dart is boring and hard -- gRPC makes it easy. Google doesn't expose a gPhotos gRPC endpoint, nor do they expose useful files/tools to generate a Dart REST API client from a machine-readable service definition. They shoulddo one or the other -- exposing gRPC endpoint is probably easier given the current state of affairs.This is the story of my short journey into trying to write a Google Photos API client. This is not advice, strictly speaking, it's more a plea and excitement for the future of Dart and Google Photos.I'm thrilled to see Google Photos finally expose a Photos API after Google sunset <a href="https://picasa.google.com/">Picassa</a> and its API several years ago. This is a major step in the right direction.<strong>The current state of gPhotos affairs</strong>Google released a <a href="https://github.com/googlecodelabs/photos-sharing/tree/final/">codelab</a> demonstrating the (relatively new) Google Photos API in a Flutter app. It uses the <a href="https://developers.google.com/photos/library/reference/rest/">Google Photos REST api</a>, and as far as I can tell, they had to build all of the <a href="https://github.com/googlecodelabs/photos-sharing/tree/final/lib/photos_library_api">wiremodel classes</a> by hand and then build_runner to generate the JSON serialization methods. This is because gPhotos doesn't actually expose a gRPC gateway.<em>It's tiresome to do this type of API client generation by hand. This is the kind of thing that makes developers not want to use your API and/or quit their jobs.</em><strong>Some gRPC gateway exists, but we can't use it</strong>Google actually seems to have gRPC working -- nearly all service-to-service communication within Google datacenters is powered by protobuf -- it's just hidden from external devs. The <a href="https://imgur.com/3H4veYh">API docs seem to hint</a> at a gRPC service hidden behind a JSON transcoding gateway, and the official Java docs include <a href="https://github.com/google/java-photoslibrary/blob/0014b569f725ff801ff36e32266479442c850119/photoslibraryapi/src/main/java/com/google/photos/library/v1/proto/AddEnrichmentToAlbumResponse.java#L2">files clearly generated from .proto files</a>. In fact, most Google services do expose gRPC interfaces, and their .proto definitions are publically available in <a href="https://github.com/googleapis/googleapis">this repo</a>.<em>This is proof positive that Google has a gRPC gateway hidden behind a firewall. Why not expose it? This is a solved problem for teams at Google.</em><strong>Going for broke -- can I at least autogenerate a REST API client?</strong>Even without a gRPC endpoint, these proto files could still be used to automatically generate the json wiremodels that Google seems to have hand written for their codelab. However, the path reference in the above Java file (google/photos/library/v1/**.proto) is not included in Google's publicly released proto files repo.<em>So the answer currently is "no, we cannot autogenerate REST API clients for gPhotos from gRPC def'ns."</em><strong>Maybe there's some hope?</strong>Google does, however, offer a <a href="https://developers.google.com/discovery/v1/reference/apis">discovery document</a> for the Google Photos APi. It's located <a href="https://photoslibrary.googleapis.com/%24discovery/rest?version=v1">here</a>. Some tools currently exist that claim to generate API clients from discovery documents. The two that currently exist are written by Google:<a href="https://github.com/googleapis/gapic-generator">gapic generator</a><a href="https://github.com/google/apis-client-generator">apis clients generator</a>The "gapic generator" is the more broadly supported of the two, but is useless for Dart developers. No Dart support whatsoever, and regardless, Java is the only supported…
New post on Flutter Dev Google group:

Unhandled Exception: Converting object to an encodable object failed: Photography
my cloud_firestore looks like this: *all_images:{imageUrl:[]}, couplePhoto:String, female:String, image_url:String, info:String, male:String* my model class: import 'package:json_annotation/json_annotation.dart'; part 'Model.g.dart'; @JsonSerializable() class Photography {

June 27, 2019 at 04:49AM by Bhanuka Isuru
https://ift.tt/2LomvxS
New post on /r/flutterdev subreddit:

Easy Custom toast notifications in Flutter using OkToast
https://ift.tt/31XSUBt

June 27, 2019 at 04:40AM by Filledstacks
https://ift.tt/2YfD9DF
New post on Flutter Dev Google group:

How to create gesture in sliver grid
Hi, I'm new to flutter. Somebody, please guide me how to add gesture detector to sliver grid.Thanks in advance

June 27, 2019 at 09:41AM by Suriya Suriya
https://ift.tt/2LvanLR
New post on Flutter Dev Google group:

why flutter has unbounded constraints for flex children? wh
According to https://ift.tt/2Xc77fo, "Layout each child a null or zero flex factor (e.g., those that are not Expanded) with unbounded horizontal constraints and the incoming vertical constraints. If the crossAxisAlignment is CrossAxisAlignment.stretch, instead use

June 27, 2019 at 12:37PM by Guanggen Zhang
https://ift.tt/2J9oO5o
New post on Flutter Dev Google group:

Flutter vs. React Native
Which Framework to Choose for Next Mobile App Development?

June 27, 2019 at 01:05PM by Jimmie Williams
https://ift.tt/2xdKlEi
New post on Flutter Dev Google group:

User grid over camera
I am using ImagePicker.pickImage(source: ImageSource.camera) to let the user to take photo. I wonder if there is a way to display my own grid (a simple rectangle) over the displayed camera on the screen? Thanks, IMozes

June 27, 2019 at 01:11PM by IMozes
https://ift.tt/2J33EWg
New post on /r/flutterdev subreddit:

AndroidStudio3.5beta5 and flutter plugin 36.1.x
No new project menu choice for flutter projects after flutter plugin update.​I assume work around is to row back to 35.x flutter plugin hint do not update flutter androidstudio plugin for now..37.x is coming in afew days anyway

June 27, 2019 at 02:37PM by fredgrott
https://ift.tt/2NdhHho
New post on /r/flutterdev subreddit:

Is flutter a good choice to make mini games like Pac-Man ?
I have seen and view the code of games made using SpriteWidget and Flame Engine. But making a game like Pac-Man in flutter from start I am finding it difficult. How should I start ?

June 27, 2019 at 02:32PM by yash36five
https://ift.tt/31YRVAI
New post on Flutter Dev Google group:

Custom widget how to connect items?
I want to create 'bubbles', that are connected to each other, based on data of some kind (so the result may need to be scrollable). 5-------6 | 4-------3 | 1-------2 I already created a widget for the bubbles, I now need to place and connect them. The question now is how to do it? Should I

June 27, 2019 at 03:30PM by Chris W
https://ift.tt/2xhZJ2E
New post on /r/flutterdev subreddit:

Video_Player Package on iOS has a really annoying bug
I want to use the video_player plugin to display one simple video on the home_screen of my app. I've implemented the player and it works perfectly until, when i exit the app on my iphone and then open it again, the video player turns into a white screen. Same thing happens if i navigate to another page on my app and then come back to the home page, also when I slide the Control Center on my phone. This only happens on IOS and when the video is PAUSED.Now if I run my app on the android simulator, this problem disappears but the audio in the video starts way before the video itself.I won't bore you with the code because its the same exact implementation of the plug-in's example on github.Here is a gif showing the issue: https://giphy.com/gifs/eMOy0qS09WpoAEADDlI have no clue on what might be causing this, is there a way I can fix this ?Thanks

June 27, 2019 at 03:52PM by michelrahme
https://ift.tt/2YgaDli