Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
Reddit: Fix navigation from contacts list to specific contact
So I am trying to make a contacts list, similar to what we have on a smart phones. I am at the stage where I have a list of contacts, but I am unable to click on a contacts name in that list, and it take me to the desired contact. I know it's a navigation problem, but I don't know how to fix it. Any help, would be great.​class ContactList extends StatelessWidget {
final List<Contact> _contacts;ContactList(this._contacts);@override
Widget build(BuildContext context) {
return new ListView.builder(
padding: new EdgeInsets.symmetric(vertical: 8.0),
itemBuilder: (context, index) {
return new _ContactListItem(_contacts[index]);
},
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => MyApp()),
);
},itemCount: _contacts.length,
);}
}

Submitted September 12, 2018 at 03:25AM by SSJCalzana
via reddit https://ift.tt/2x5W4W1
Reddit: How to implement a search bar without blocking users view
So at the moment I have a contacts list where I can view my contacts in a static list. I want to be able to click on the search bar, and instead of it dropping over the contacts, obscuring users view, the search will open up in a new blank page as the user types.
 class _ContactPage extends State<ContactsPage> { @override Widget build(BuildContext context) { return new MaterialApp( home: new Scaffold( appBar: new AppBar( title: widget.appBarTitle, actions: <Widget>[ new IconButton( icon: widget.actionIcon, onPressed: () { setState(() { if (widget.actionIcon.icon == Icons.search) { widget.actionIcon = new Icon(Icons.close); widget.appBarTitle = new TextField( style: new TextStyle( color: Colors.white, ), decoration: new InputDecoration( prefixIcon: new Icon(Icons.search, color: Colors.white), hintText: "Search...", hintStyle: new TextStyle(color: Colors.white)), onChanged: (value) { print(value); //filter your contact list based on value }, ); } else { widget.actionIcon = new Icon(Icons.search); //reset to initial state widget.appBarTitle = new Text("Contacts"); } }); }, ), ], ), body: new ContactList(kContacts)), ); } } 


Submitted September 12, 2018 at 03:09AM by SSJCalzana
via reddit https://ift.tt/2MnHKg2
GGroup: How to dispose Stateful Widget completely?
*Hi,* I call my stateful widget page and get some info from server. If no info found it warns user that there isn't any info. From drawer back button I go back to previous page. *If I keep repeat back and forth very fast* I get an error on console message in my IntelliJ IDE as; E/flutter

Submitted September 12, 2018 at 08:16AM by Niyazi Toros
via Flutter Dev https://ift.tt/2MkmfNb
GGroup: Google recaptcha in Flutter SDK 2.1.0-dev.1.0.flutter-ccb16f7282
How do I add Google recaptcha in my app? I am getting an error when i add dependany of recaptcha 0.0.1. *" The current Dart SDK version is 2.1.0-dev.1.0.flutter-ccb16f7282.* *Because flutter_app depends on recaptcha any which requires SDK version <2.0.0, version solving failed.* *pub get failed

Submitted September 12, 2018 at 08:53AM by AVRSP GKF
via Flutter Dev https://ift.tt/2O9qME1
Reddit: Unable to locate a development device
Unable to locate a development device; please run 'flutter doctor' for information about installing additional components.Can someone help on how to rectify this, am getting this error when i try to run my flutter program on Android Studio 3.1.4..when i try to run flutter doctor, am getting hints that my dart and flutter plugins is not installed...but i have installed both the plugins.https://i.redd.it/7b4i58tdmrl11.png

Submitted September 12, 2018 at 10:10AM by whyICode
via reddit https://ift.tt/2NzqOrL
GGroup: Download files from Amazon S3 Bucket
Hi All, Could you please help me, how to download data from the amazon s3 bucket using Flutter? I couldn't find any source for it.

Submitted September 12, 2018 at 11:55AM by aakruti...@jini.guru
via Flutter Dev https://ift.tt/2NCxHsb
Reddit: Flutter: Blood particle effect
https://ift.tt/2N6iQqP

Submitted September 12, 2018 at 12:02PM by Purple_Pizzazz
via reddit https://ift.tt/2COZiT3
GGroup: Flutter too slow
Hello Flutter Team, I recently started using flutter for mmobile app.One thing that stands out is that flutter run takes too much time, like 40-45 minutes to run.I am currently using Macbook pro(I-5 CPU and 8gb ram(4 + 4 extended). I am attaching screenshots of my activity monitor. I would

Submitted September 12, 2018 at 01:40PM by Arun Sharma
via Flutter Dev https://ift.tt/2QnaTLN
GGroup: swap left or right on card
Hi All, *How to know widget(Container) is swap left or right?* *Thanks in advance.*

Submitted September 12, 2018 at 06:52PM by Sanjay Tejani
via Flutter Dev https://ift.tt/2NDltQ3
GGroup: Might've found an issue in flutter test or maybe I'm just doing it wrong
Hi everyone! I've just added localization for my app. Partially using the Intl generated localization classes and some homegrown json localization for data objects (country names). I got stuck when writing tests for this though because the widgets need localization and when I add the localization

Submitted September 12, 2018 at 08:35PM by David Dikman
via Flutter Dev https://ift.tt/2x5yzw2
Reddit: flutter_appavailability: A Flutter plugin that allows you to check if an app is installed/enabled, launch an app and get the list of installed apps.
https://ift.tt/2Oa2DwV

Submitted September 12, 2018 at 10:11PM by LorePi
via reddit https://ift.tt/2N96mi9
GGroup: iphone simulator for flutter project using intellij in windows machine
hello guys, i just want to ask if it's possible to have an iphone simulator/emulator for intellij using windows pc for flutter project? how to do it, is there any videos or tutorial about this? thanks guys

Submitted September 13, 2018 at 06:36AM by adc dev
via Flutter Dev https://ift.tt/2p2YboV
GGroup: Customize web view
How to customize web view in flutter?

Submitted September 13, 2018 at 06:52AM by Falak Sabbir
via Flutter Dev https://ift.tt/2Mprj2V
Reddit: Building Apps for iPhone XS, iPhone XS Max, and iPhone XR.
If your app has already adopted safe area insets, there's not much you will need to do to update your app for iPhone XS, iPhone XS Max, and iPhone XR.A reminder that when creating your app for both iOS and Android make sure you sue the SafeArea Widget in your body or where needed.https://developer.apple.com/videos/play/tech-talks/207

Submitted September 13, 2018 at 06:31AM by Pixelreddit
via reddit https://ift.tt/2CPMf3v
GGroup: After upgrading to Flutter 0.7.3 channel beta the WidgetsBindingObserver is not working?
After upgrading to Flutter 0.7.3 channel beta (Dart 2.1.0-dev.1.0.flutter-ccb16f7282) the WidgetsBindingObserver is not working. Any idea how to make it to run? I use android emulator and after login wait over 90 second and nothings happens. Need urgent help??? > *// Statefull HomePage**cl

Submitted September 13, 2018 at 09:29AM by Niyazi Toros
via Flutter Dev https://ift.tt/2p5cqJY
Reddit: Mobile Developers looking for ways to venture into Machine Learning, I wrote a blog outlining the possible ways you, as a mobile developer, can start with Machine Learning without getting overwhelmed with all the Maths behind it!
https://ift.tt/2MkRGHp

Submitted September 13, 2018 at 10:23AM by the-dagger
via reddit https://ift.tt/2x2VS9V