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

SoundCloud widget
Hi I need add a SoundCloud playlist, somebody help me? Att

May 09, 2019 at 12:55AM by Israel Ribeiro
http://bit.ly/2PVfG7k
New post on Flutter Dev Google group:

Cupertino and Material
So I am really confused. I understand flutter apps can run on ios and android. So why are there different UI widgets such as cupertino and material? Can I run a material app on ios, and it just does not look like an IOS app? Thanks Leor

May 09, 2019 at 01:21AM by leor amikam
http://bit.ly/2VPJPdM
New post on /r/flutterdev subreddit:

Search AppBar from Google I/O?
You can see it here: https://www.youtube.com/watch?v=YSULAJf6R6M&t=515s I've tried to search the Internet for this component but without a success. Does anyone knows anything?

May 09, 2019 at 01:44AM by Albert221
http://bit.ly/2vP3xr6
New post on Flutter Dev Google group:

How to structure a multi-target project
I would like to develop a project with a REST server, and mobile, desktop and hummingbird clients. A great deal of the code will be shared. While I’m developing it would be inconvenient to have to synch up multiple separate projects in some way (I think). I imagine some way of putting all the

May 09, 2019 at 02:05AM by Guyren Howe
http://bit.ly/2WwNTwv
New tweet from FlutterDev:

Dart is Flutter's secret sauce 😎 – enabling amazing application experiences without compromises. Produce fast, high-fidelity, production applications that run across multiple platforms.

Get in on the secret at this #io19 talk → https://t.co/1JIuoKtcnv pic.twitter.com/Wjx0yzZZuS— Flutter (@FlutterDev) May 9, 2019

May 09, 2019 at 02:20AM
http://twitter.com/FlutterDev/status/1126280672379842561
New tweet from FlutterDev:

We built a Flutter game with @2Dimensions for #io19 that puts you in charge of a development team! Assemble a team of heroic coders, slay bugs, and get things done at 60fps!

Find the source at → https://t.co/4mGrxMkCpN

Read the blog to learn more → https://t.co/nahCiLbz2l pic.twitter.com/crF85Ub8Ur— Flutter (@FlutterDev) May 9, 2019

May 09, 2019 at 03:05AM
http://twitter.com/FlutterDev/status/1126291953530937344
New post on /r/flutterdev subreddit:

Loading image assets from a package
Hey all, after poking around HERE and trying things out, my main app will happily load images from a package that I made for holding branding images etc, to be shared amongst all apps.All well and good, but in the example shown above, the main app has to know where in the package the image is located.I tried adding a helper function to the package, something like:
class Logos { static Image logoSmall = Image.asset('logos/assets/logo_small.png'); } 
The problem is, when I call this from the main app, it tries to find the .png in its own assets. Yes, I can use:
AssetImage('path/to/image.png', package: 'myPackage'); 
but that still requires the app knowing about the layout of the package, which I'm trying to avoid.So is there a way to do this? Ideally I'd like a package I can hand off to devs, where they just call the helper functions and get the right logo etc.​Cheers!

May 09, 2019 at 04:48AM by Foggerty
http://bit.ly/305wg9f
New post on /r/flutterdev subreddit:

Tic Tac Toe game made in Flutter for web
http://bit.ly/30225zP

May 09, 2019 at 04:31AM by EngineerScientist
http://bit.ly/2Vdpf2k
New post on /r/flutterdev subreddit:

Sample application with flutter and firebase
Flutter Firebase Sample AppA Flutter application integrating Firebase for data storageCreate AccountLoginAll CRUD actions on data objectFlutter Features/Functionality UtilizedPagesSnackbar: showing errors and alertsNavigation: changing pages and showing modalsFutures: interacting with firebaseForms/Form Fields: login and creating an accountDate Picker: creating an itemDismissible: allows user to swipe to delete list itemStatefulWidgetStatelessWidgethttps://github.com/aaronksaunders/flutter_firebase_auth_appWatch Video Here: https://video.twimg.com/ext_tw_video/1126242410512769026/pu/vid/612x1280/oqi7wxmGwVh2z-CD.mp4?tag=9

May 09, 2019 at 06:37AM by aaronksaunders
http://bit.ly/2JqWRrn
New post on Flutter Dev Google group:

Creating an iOS framework and android library from a flutter project
Hi Current state: We have developers which build an android app (+library) and an iOS application (+framework). Goal: Have one common codebase which allows to build apps for both platforms (flutter) but also allows generating libs for those two platforms. Because we need to ship libs to our

May 09, 2019 at 09:53AM by sirLoaf
http://bit.ly/2H8NUl4
New post on /r/flutterdev subreddit:

I love flutter. But, Having a problem :(
I installed flutter in android studio. The Virtual device in android studio is not launching. when I launch Virtual device, I get some errors in the event log and my PC shuts down. (Using Windows 7)​+++Please mute while watching the video+++Video describing the problem: https://www.youtube.com/watch?v=jGo5Ezwtx1UNeed urgent help. Please help me out, Technical gurus. Thanks

May 09, 2019 at 09:48AM by DummyBoss
http://bit.ly/2Q3tkFH
New post on /r/flutterdev subreddit:

<b>Cannot able to take screenshot of CameraPreview in flutter</b>
pubspec.yaml (dependenices used)<pre>dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.2 # camera camera: # package for saving the screenshot image_picker_saver: ^0.1.0 # packge for toast-msg fluttertoast: ^2.0.0 </pre>build.gradle (app module):<pre>android { compileSdkVersion 28 lintOptions { disable 'InvalidPackage' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.using_camera" minSdkVersion 21 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug } } } </pre>main.dart<pre>import 'package:flutter/material.dart'; import 'package:using_camera/camera_view.dart'; import 'package:camera/camera.dart'; import 'dart:async'; List<CameraDescription> cameras; Future<Null> main() async { cameras = await availableCameras(); runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, theme: ThemeData( primaryColor: Colors.greenAccent, primarySwatch: Colors.green), home: CameraView(cameras), ); } } </pre>camera_view.dart<pre>import 'dart:typed_data'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'dart:ui' as ui; import 'package:flutter/services.dart'; import "package:fluttertoast/fluttertoast.dart"; import 'package:image_picker_saver/image_picker_saver.dart'; class CameraView extends StatefulWidget { List<CameraDescription> cameras; CameraView(this.cameras); @override _CameraViewState createState() => _CameraViewState(); } class _CameraViewState extends State<CameraView> { CameraController controller; static GlobalKey previewContainer = new GlobalKey(); var filePath; @override void initState() { super.initState(); controller = CameraController(widget.cameras[0], ResolutionPreset.medium); controller.initialize().then((_) { if (!mounted) { return; } setState(() {}); }); } @override void dispose() { controller?.dispose(); // if controller is not null then dispose super.dispose(); } @override Widget build(BuildContext context) { if (!controller.value.isInitialized) { return Container(); } //CameraPreview(controller) return RepaintBoundary( key: previewContainer, child: Stack( children: <Widget>[ Positioned.fill( child: AspectRatio( aspectRatio: controller.value.aspectRatio, child: CameraPreview(controller), ), ), Center( child: Image.asset("assets/image.png"), // overlay image ), Positioned.fill( child: Opacity( opacity: 1.0, child: Image.asset( "assets/filter.png", // transparent background fit: BoxFit.fill, ), ), ), Align( alignment: Alignment.bottomCenter, child: RaisedButton( child: Text("Capture"), onPressed: (){ _takeScreenShot(); }, ), ) ], ), ); } Future _takeScreenShot() async { RenderRepaintBoundary boundary = previewContainer.currentContext.findRenderObject(); ui.Image image = await boundary.toImage(); ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png); Uint8List pngBytes = byteData.buffer.asUint8List(); print("pngBytes value : $pngBytes"); setState(() {}); filePath = await ImagePickerSaver.saveFile(fileData: pngBytes); toastMsg("Saved on ${filePath.toString()}"); print(filePath); print("inside _takeScreenShot"); } toastMsg(String msg) { var toast = Fluttertoast.showToast( msg: "$msg", toastLength: Toast.LENGTH_SHORT, gravity: ToastGravity.BOTTOM, timeInSecForIos: 3, backgroundColor: Colors.red