Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

Flutter SqlLite for windows app
Hello, I am a student and i start with flutter. I want to use sqllite in windows app.I have used this code : databasesPath = await getApplicationDocumentsDirectory(); path = join(databasesPath.toString(), 'base.db'); database = await openDatabase(path.toString(), version: 1, onCreate: (Database db, int version) async { });but i have this error : [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method getDatabasesPath on channel com.tekartik.sqflite)0 MethodChannel._invokeMe

November 01, 2021 at 10:24PM by Assi_Maurel
https://ift.tt/3pYpZf0
New post on /r/flutterdev subreddit:

I made my first game using Flutter but you shouldn't. It was a Nightmare.
*** Read this ONLY if you wonder if you should use Flutter to build a mobile game ***I started this adventure with Flutter Bonfire (Package). It was very hard to understand and the lack of tutorial/documentation/stack-overflow was a big reason why I didn't enjoy it. (I'm sure it's a great package if you know how to use it tho). Then I decided to use Flame instead and I had the same problem/issue. (Lack of online information).So if you wonder if you should use Flutter to build a mobile game, I would suggest you to use Unity instead. I have never use Unity personally, but it seems to have MUCH more online documentation/tuto/stack-overflow.If I create an other game, I will definitively use Unity instead of Flutter. I Hope this help you in your decision.Let me know if you have more question.

November 02, 2021 at 01:37AM by fluttermapp
https://ift.tt/3EDroeO
New post on /r/flutterdev subreddit:

Hiring a teacher/developer from India
I’ve spent a bit of time learning some basic dart and flutter but it doesn’t come easily to me. I find it complicated and in it’s entirety rather unfathomable. Thing is I don’t want to be an all round programmer I just want to develop a particular app. I have the content and the design all ready and everything. My idea is to hire some one from India. He could teach me how to create the app on flutter and I could do all the work I could do for it. I suppose you could say they help me create the framework and I could do a lot of work like data entry that sort of stuff. Is my plan sound?

November 02, 2021 at 07:49AM by Kathleen_Chen
https://ift.tt/2ZHSDGb
New post on /r/flutterdev subreddit:

What's everyone working on or planning on working on?
What Flutter projects is everyone working on, or planning on doing? As for me, I'm planning on making a manga app.

November 02, 2021 at 02:04PM by 31Carlton7
https://ift.tt/3qehRqX
New post on /r/flutterdev subreddit:

<b>call method from another class using animationcontroller</b>
i new on flutter i want to call a method to a antother class i find this error 'LateInitializationError: Field 'animationController' has not been initialized.'could somebody help me please?import 'package:flutter/animation.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
<a href="/u/override">u/override</a>
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage>
with SingleTickerProviderStateMixin {
late AnimationController animationController;
static const double maxSlide = 225.0;
static const double minDragStartEdge = 60;
static const double maxDragstartEdge = maxSlide - 16;
bool _canBeDragged = false;
<a href="/u/override">u/override</a>
void initState() {
super.initState();
animationController = AnimationController(
vsync: this, duration: const Duration(milliseconds: 250));
  }
void toggle() => animationController.isDismissed ? open() : close();
void close() => animationController.reverse();
void open() => animationController.forward();
// Declaration des page
var drawer = MyDrawer();
var customChild = MyCustomChild();
<a href="/u/override">u/override</a>
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: GestureDetector(
//gestation de comportments des page
onHorizontalDragStart: _onDragStart,
onHorizontalDragUpdate: _onDragUpdate,
onHorizontalDragEnd: _onDragEnd,
onTap: toggle,
child: AnimatedBuilder(
animation: animationController,
builder: (context, _) {
double numValue = animationController.value;
final slide = numValue * maxSlide;
final scale = 1.0 - (numValue * 0.3);
return Stack(children: [
drawer,
Transform(
transform: Matrix4.identity()
                        ..translate(slide)
                        ..scale(scale),
alignment: Alignment.centerLeft,
child: customChild),
                ]);
              }),
        ),
      ),
    );
  }
void _onDragStart(DragStartDetails details) {
bool isDragOpenFromLeft = animationController.isDismissed &&
details.globalPosition.dx < minDragStartEdge;
bool isDragCloseFromRight = animationController.isCompleted &&
details.globalPosition.dx > maxDragstartEdge;
_canBeDragged = isDragOpenFromLeft || isDragCloseFromRight;
  }
void _onDragUpdate(DragUpdateDetails details) {
if (_canBeDragged) {
double delta = details.primaryDelta! / maxSlide;
animationController.value += delta;
    }
  }
void _onDragEnd(DragEndDetails details) {
if (animationController.isDismissed || animationController.isCompleted) {
return;
    }
if (details.velocity.pixelsPerSecond.dx.abs() >= 365.0) {
double visualVelocity = details.velocity.pixelsPerSecond.dx /
MediaQuery.of(context).size.width;
animationController.fling(velocity: visualVelocity);
    } else if (animationController.value < 0.5) {
close();
    } else {
open();
    }
  }
}
class MyDrawer extends StatefulWidget {
MyDrawer({Key? key}) : super(key: key);
<a href="/u/override">u/override</a>
_MyDrawerState createState() => _MyDrawerState();
}
class _MyDrawerState extends State<MyDrawer> {
<a href="/u/override">u/override</a>
Widget build(BuildContext context) => Scaffold(
backgroundColor: //const Color.fromRGBO(21, 30, 61, 1),
Theme.of(context).primaryColor,
body: Container());
}
class MyCustomChild extends StatefulWidget {
// ignore: non_constant_identifier_names
const MyCustomChild({Key? key}) : super(key: key);
<a href="/u/override">u/override</a>
_MyCustomChildState createState() => _MyCustomChildState();
}
class _MyCustomChildState extends State<MyCustomChild> {
_HomePageState toggleDrawer = _HomePageState();
<a href="/u/override">u/override</a>
Widget build(BuildContext context) => Scaffold(
backgroundColor: Colors.yellow[800],
appBar: AppBar(
leading: IconButton(
onPressed:…
New tweet from FlutterDev:

🦋 Chapter 3: Pop Quiz! Which of the following is NOT the job of a "Layout" widget? #flutterapprentice— Flutter (@FlutterDev) Nov 2, 2021

November 02, 2021 at 05:08PM
https://twitter.com/FlutterDev/status/1455567582019285004
New post on /r/flutterdev subreddit:

Flutter notification
I want to to make a notification to keep on ringing until i stop it myself (just like the alarm system). Anyone can help?

November 02, 2021 at 08:04PM by shabriko
https://ift.tt/3CGG6kT
New tweet from FlutterDev:

RT @GooglePlayDev: Learn about our new policy updates designed just for YOU!➞ https://t.co/oasW9ryxc4 📆 On November 17, tune in to hear about: Latest policy updates December’s compliance requirements Insights into new Families policies Get your questions answered by experts https://t.co/cpF0OBO2L7— Flutter (@FlutterDev) Nov 2, 2021

November 02, 2021 at 10:31PM
https://twitter.com/FlutterDev/status/1455648899532734477
New post on /r/flutterdev subreddit:

Has anyone implemented a Freemium Model into your app?
I'm looking into Monetizing my Note-Taking app and know there are many different ways to do this. I was wondering if anyone has experience in implementing a Freemium Model? Does it work and is it the best Payment Solution?

November 03, 2021 at 02:28AM by Dover21
https://ift.tt/3jYZqSW
New post on /r/flutterdev subreddit:

Flutter and macOS Monterey
Hey guys, I haven't updated my mac os yet and would be great if people could share some experiences and how stable it is at the moment.thanks!!!

November 03, 2021 at 06:08AM by marcuslr
https://ift.tt/3nPYqSd
New post on /r/flutterdev subreddit:

How did your null-safety migration go?
If you are working on a non-trivial Flutter application used in production where most of the app's code was written before null-safety was introduced, how did your null-safety migration go?I'm planning to give a short talk about null safety migration and running apps in unsound null safety, and I'd like to learn more about how your migration went. Please feel free to share as much about your experience as you can/want, I'd appreciate all comments!Did you migrate completely with the migration tool? How was your experience with the tool?Could you migrate the whole app in one step? Did you have to fix up a lot of things? Or did you "just let it run"? Are you happy with the result?How long did it take to migrate the app? / How long do you estimate it taking?Did you run in mixed-version, unsound mode? If yes, how long were you running in unsound mode?Did you find it hard to find null-safe versions of your dependencies? Did you have lots of forks that you then had to migrate on your own?Did the migration cause confusion within your team?Did the app size decrease significantly? If yes, by how much?Resources that could be interested for you if you don't know what this question is about:Migration to null safetyUnsound null safetyView Poll

November 03, 2021 at 11:06AM by serial_dev
https://ift.tt/3k0PYyD
New post on /r/flutterdev subreddit:

Jobs
In regards to flutter jobs, are they actually plentiful in the US? I don’t see many job postings so it has me wondering.Also for anyone currently working as a flutter dev, did you start with native systems first or did you start with flutter?

November 03, 2021 at 04:51PM by CalitaWyatt4
https://ift.tt/3w9Ettu
New tweet from FlutterDev:

C. Displaying content is the correct answer! 🥳— Flutter (@FlutterDev) Nov 3, 2021

November 03, 2021 at 06:08PM
https://twitter.com/FlutterDev/status/1455945006246625282