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

Hello, i need to create pagination
I have created it successfully. but when I load new data in at the end of scroll. it reset the old data, i want to persist the old data as well with new data, here is my code import 'dart:io'; import 'package:flutter/material.dart'; import 'product/products.dart'; import 'package:provider/provide

May 24, 2021 at 01:24PM by Attaullah Khan
https://ift.tt/3viiSxx
New post on Flutter Dev Google group:

What's next after submitting PR
Hey Everyone, So I submitted one Pull Request to flutter repo, I dont know what's next after these? Here is the link to my Pull Request Force user to atleast provide one from initalData or Future in FutureBuilder by agwanyaseen · Pull Request #83093 · flutter/flutter (github.com)
New post on /r/flutterdev subreddit:

PLease Rate my api calling with provider and suggest how can i improve. https://ift.tt/2SkfDHA
Model Classclass BannerModel {BannerModel({this.bannerId,.....this.image});final String bannerId;....​factory BannerModel.fromJson(Map<String, dynamic> json) {return BannerModel(bannerId: json['_id'],bannerTitle: json['show']['showTitle'],.....);}}​Provider Class or Apiclass BannerProvider with ChangeNotifier {bool loading = false;List<BannerModel> _banners = [];List<BannerModel> get banners { return [..._banners]; }getBannerData(context) async {loading = true;_banners = await fetchTask(context);loading = false;notifyListeners();}​fetchTask(context) async {var box = await Hive.openBox(keyHiveBox);var _token = box.get(keyToken);final response = await http.get(Uri.https(baseUrl, 'banners'), headers: {'Content-Type': 'application/json','Accept': 'application/json','Authorization': 'Bearer $_token',});if (response.statusCode == 200) {var data = json.decode(response.body) as List;_banners =data.map<BannerModel>((json) => BannerModel.fromJson(json)).toList();return _banners;}}}Main Classvoid main() async {runApp(MultiProvider(providers: providers,child: MyApp(),));}​List<SingleChildWidget> providers = [ChangeNotifierProvider<UserProvider>(create: (BuildContext context) => UserProvider()),ChangeNotifierProvider<BannerProvider>(create: (BuildContext context) => BannerProvider()),];​class MyApp extends StatelessWidget {// This widget is the root of your application.u/overrideWidget build(BuildContext context) {return MaterialApp(......}​Screenclass MyHomePage extends StatefulWidget {u/override_MyHomePageState createState() => _MyHomePageState();}​class _MyHomePageState extends State<MyHomePage> {​u/overridevoid initState() {​//banner providerfinal _bannerP = Provider.of<BannerProvider>(context, listen: false);_bannerP.getBannerData(context);}u/overrideWidget build(BuildContext context) {final _bannerP = Provider.of<BannerProvider>(context);return SafeArea(....child: _bannerP.loading? MyProgressBar(): ScrollConfiguration(behavior: NoGlowBehavior(),child: SingleChildScrollView(child: _connectionStatus == 'ConnectivityResult.none'? Container(): Column(children: [//Banner CardContainer(margin: EdgeInsets.symmetric(horizontal: 3, vertical: 5),child: CarouselSlider.builder(itemCount: _bannerP.banners.length,options: CarouselOptions(autoPlay: true, height: kBannerHeight, viewportFraction: 1),itemBuilder: (BuildContext context, int index, int realIndex) {return MyBannerWidgets(image: _bannerP.banners[index].image,id: _bannerP.banners[index].showId,);},),),}}}

May 24, 2021 at 02:04PM by Prashant_4200
https://ift.tt/34dKKac
New post on /r/flutterdev subreddit:

Decent machine for Apple development
My workflow has till now involved using Flutter on Windows, Linux (WSL) and Android and now I want to develop for iOS and Mac too. I am familiar with working with Mac through a VM but it is becoming expensive. I'm thinking of purchasing a Mac device. Preferably with M1. My budget is 70,000 INR max. I already have a laptop (Asus Zephyrus G15) for all other work (CAD, designing) and am wondering if the Mac mini 8gb is a good choice for developing with flutter + running an emulator. I will be using anydesk or similar tools when away from home.

May 24, 2021 at 01:45PM by realrk95
https://ift.tt/3vfGP8Y
New post on Flutter Dev Google group:

INCULA E UCCIDE BAMBINI: DANIELE MINOTTI! AVVOCATO PEDOFILO, SATANISTA, SATAN卐AZISTA, MASSON^PIDUISTA, ASSASSINO DI GENOVA, RAPALLO E CRIMINALISSIMO STUDIO LEGALE LISI!
INCULA E UCCIDE BAMBINI: DANIELE MINOTTI! AVVOCATO PEDOFILO, SATANISTA, SATAN卐AZISTA, MASSON^PIDUISTA, ASSASSINO DI GENOVA, RAPALLO E CRIMINALISSIMO STUDIO LEGALE LISI! É DA ARRESTARE L'AVVOCATO CHE RAPISCE, INCULA ED AMMAZZA TANTI BAMBINI: DANIELE MINOTTI (FACEBOOK) DI GENOVA, RAPALLO E

May 24, 2021 at 04:27PM by Andreas Nigg Bank J Safra Sarasin Zurich
https://ift.tt/2Sot9Kh
New post on /r/flutterdev subreddit:

Flutter Tap Weekly Newsletter Week 86 - Google I/O Edition - Tutorials, videos, packages, and much more!
https://ift.tt/3wvUmJO

May 24, 2021 at 05:33PM by vensign
https://ift.tt/2SoKpiw
New post on /r/flutterdev subreddit:

Flowder a friendly file downloader persistent state (continue, pause, cancel your file download)
Hello Flutterist (I hope that i write it good), Is an honour to share with all of you, a new member to the flutter plugins, named FLOWDER this was created due to the highly painful process of handle a download progress state, and be capable of resume, pause, cancel or start your download without having to rethink the state of persistent of the download.​This is the link to the pub.dev: https://pub.dev/packages/flowderand also the github repo: https://github.com/Crdzbird/flowder​I hope that this helps you in your daily task or learning :) and feel free to customize it as you like or leaving your suggestions.Btw... im participating in a competition named Flutter Quest, if you wanna please gave me a thumbs up vote, https://github.com/FlutterSpain/quest/issues/1#issuecomment-839986144

May 24, 2021 at 05:25PM by Ghost_InTheDart
https://ift.tt/3ubzFkN
New post on Flutter Dev Google group:

navigatori without back button
Hello, why do i use this code Navigator.push( context, MaterialPageRoute(builder: (context) => new MainPage()), ); and still get the back button ? [image: Captura.PNG]

May 24, 2021 at 06:58PM by aleix alfonso
https://ift.tt/3ullKIO
New post on Flutter Dev Google group:

Full demo app from a conference — where is it?
I recall at some conference maybe 6 months ago, there was a full demo app, some sort of gallery or something, that was introduced with source code. I’m trying to find it, but it isn’t in the gallery or sample code on the Flutter site that I can see. Where is it? And I propose we should have a

May 24, 2021 at 07:32PM by Guyren Howe
https://ift.tt/3oMVc23
New post on /r/flutterdev subreddit:

Hot reload button on VS Code Flutter Extension
Hi,Not exactly help (therefore not fitting for r/FlutterHelp), but more of a question about usage.I'm just trying to get my head around something (also to if I'm missing some configuration): On VS Code, the hot reload button (either ^F5 or the ray icon) doesn't really reload unless files are saved, correctly?
So, if Hot Reload on Save is set to either "manual" or "always", the button itself doesn't add much value other than forcing the hot reload (if it didn't happen for whatever reason).Am I correct or am I missing the nice capability to trigger hot reload from the unsaved files (although I'm not entirely sure how would it be useful)?Cheers.

May 24, 2021 at 07:05PM by tnarik
https://ift.tt/3wuOeBw
New tweet from FlutterDev:

🤩 Learn what's new in Flutter

Check out this #GoogleIO Keynote with @ZoeyFan723 and @csells to find out more about:

✌️ Flutter 2.2 release
🔼 Latest Updates to Dart and Flutter
🔧 Flutter DevTools
🌍 The ecosystem

… and more!

Watch 👉 https://t.co/SODp28PgLn pic.twitter.com/j4hE9cnLPf— Flutter (@FlutterDev) May 24, 2021

May 24, 2021 at 08:29PM
http://twitter.com/FlutterDev/status/1396896252365877255
New tweet from FlutterDev:

#GoogleIO Extended

The magic of I/O doesn’t end after the main event. Join other local Flutter developers to talk about your favorite announcements and all the cool new technologies.

Are you ready? 👉 https://t.co/cyomH78VSg pic.twitter.com/ZoSviEJVmU— Flutter (@FlutterDev) May 24, 2021

May 25, 2021
http://twitter.com/FlutterDev/status/1396949126122778626
New post on /r/flutterdev subreddit:

Conduit release meeting
The conduit team (previously aqueduct) is having a community meeting this weekend to discuss the release process for conduit and post release priorities.Conduit is a Dart base REST service with an integrated ORM and I think it's fair to say that it is the most advanced Dart Server framework available.As to the state of conduit.We are now code complete for the release.We have just finished automating the release process and are finalising a re-organisation of the conduit repo into a mono-repo to facility reliable releases.With the final release we believe that Conduit is ready for production release.If you want to get involved, join the discord channel at:https://discord.gg/ASK6vxr88fThe conduit project is hosted at:https://github.com/conduit-dart/conduitDocumentation is hosted on gitbooks:https://gitbook.theconduit.dev/Show your availability for the meeting at:https://www.when2meet.com/?11977265-oSgPaJoin the meeting:meet.google.com/xso-uhrh-fedRegards,BrettEdit: added meeting link

May 25, 2021 at 01:23AM by bsutto
https://ift.tt/3hS8QQ6
New post on Flutter Dev Google group:

Sliding footer with content in flutter
I wanted to know that how do I make the below page where the footer(Like, Comment, Share, Shave) remains in the bottom till the length of the content and when the content is over while sliding the footer(Like, Comment, Share, Shave) slides up with its own content. as shown in the below 2 images.

May 25, 2021 at 03:27AM by palak pandey
https://ift.tt/3hPmlQi