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

Does the jit compiler translate the source code to machine language or to an intermediary language?
And if it translates it to an intermediary language then how does the program run?

February 21, 2022 at 10:58PM by Ailuro_maniac
https://ift.tt/AUKDQYy
New post on /r/flutterdev subreddit:

I created a template app with JWT Authentication!
I created a template for building apps with JWT Authentication, so when building a new project, you can just start from that point, without needing to build everything from scratch.It's fully open source, so feel free to use it on your projects.Also, if you think that something could be better, contribute and make the project better for the whole community.If this helps, please consider starring it.Thanks!Link to repo: https://github.com/Enzodtz/flutter-jwt-auth-template

February 21, 2022 at 10:25PM by enzodtz
https://ift.tt/YUJnsHe
New post on /r/flutterdev subreddit:

Cannot get RiverPod 1.0+ to work... Help!
pubspec.yaml:flutter_hooks: ^0.18.2+1
hooks_riverpod: ^1.0.3​​main.dart:import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';class AppThemeState extends StateNotifier<bool> {
AppThemeState(): super(false);void setLightTheme() => state = false;
void setDarkTheme() => state = true;
}
// Theme
final appThemeStateNotifier = StateNotifierProvider((ref) => AppThemeState());void main() {
runApp(ProviderScope(child: MyApp()));
}
class MyApp extends HookConsumerWidget {
u/override
Widget build(BuildContext context, WidgetRef ref) {
final darkModeEnabled = ref.watch(appThemeStateNotifier);
return MaterialApp(
title: 'Flutter Demo',
theme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme,
themeMode: darkModeEnabled != null ? ThemeMode.dark : ThemeMode.light,
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
u/override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
elevation: 2.0,
title: Text("Flutter Theme Riverpod Demo"),
),
body: Column(
children: [
Expanded(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text("Light Mode"),
DarkModeSwitch(),
Text("Dark Mode"),
],
),
),
],
),
);
}
}
class DarkModeSwitch extends ConsumerWidget {
u/override
Widget build(BuildContext context, WidgetRef ref) {
final darkModeEnabled = ref.read(appThemeStateNotifier) == true;return //Text('$darkModeEnabled');
Switch(
value: darkModeEnabled,
onChanged: (enabled) {
if (enabled) {
ref.read(appThemeStateNotifier.notifier).setDarkTheme();
} else {
ref.read(appThemeStateNotifier.notifier).setLightTheme();
}
},
);
}
}
class AppTheme {
// Private Constructor
AppTheme._();static final lightTheme = ThemeData(
scaffoldBackgroundColor: Colors.white,
appBarTheme: AppBarTheme(
color: Colors.teal,
iconTheme: IconThemeData(
color: Colors.white,
),
),
textTheme: TextTheme(
bodyText2: TextStyle(
color: Colors.black,
),
),
);static final darkTheme = ThemeData(
scaffoldBackgroundColor: Colors.black,
appBarTheme: AppBarTheme(
color: Colors.black,
iconTheme: IconThemeData(
color: Colors.white,
),
),
textTheme: TextTheme(
bodyText2: TextStyle(
color: Colors.white,
),
),
);
}

February 22, 2022 at 12:08AM by rohitsoni819
https://ift.tt/19zSrio
New post on /r/flutterdev subreddit:

Flutter performance for music app?
Hello, I've been working on a music app (something akin to "Simon".) Building it is a hobby/labor-of-love, but I do intend to eventually charge for it. My background is in JS/React.I started building originally in Android Native. Performance was great, but I found development quite slow, and considering that I would likely find iOS native dev slow also, decided to try React Native.Alas, RN turned out have totally unacceptable performance on my phone (an admittedly older Samsung Galaxy Halo.) The app is timing-intensive and measures rhythm exactly, and the RN build was noticeably laggy. (A bummer, since I know React pretty well.)I've been informed that RN performance should be better on new phones, but I'd like to build in an environment where I really don't have to worry about it. So I've been considering Flutter. Reviews have stated that it performs overall better than RN ("aiming for 60fps"), if not quite as perfectly as a native app.So I wanted to check with Flutter devs to make sure I'm making the right call here. Here is what my app will need:- Metronomic precision for timing user taps and playing samples (managed by an animation loop)
- A mostly-static screen with some minor/intermittent visual animation (eg: a little bird flies by upon completion of a level)
- Accompanying background musicOverall the project is fairly simple, I just really want to make sure it can do these things well before I plunge in and spend untold hours learning a new framework. Should I go for it with Flutter, or accept that I will need to slog through building two native apps to make this work?Thanks so much for your time and honest opinions!

February 22, 2022 at 02:06AM by gntsketches
https://ift.tt/xiM7W54
New post on /r/flutterdev subreddit:

Poll - How many years of experience with flutter do you have?
Hope you all would help with this poll. I’m gathering data as to what’s the average developer experience with flutter. TYIAView Poll

February 22, 2022 at 04:08AM by riveraj33
https://ift.tt/SbgXJRV
New post on /r/flutterdev subreddit:

Is it worth it ?
Hey fellow Flutter developers hope you guys are having a great day. So I recently got into a company as an intern. I was given time to learn for the first two months and was assigned a mentor who was mostly busy. After that, I was tasked with migrating an old Flutter app (about 4 years old) to the latest version. I was promised a job if I did this. I have completed the migration of the app (including all packages) after two months. I have been working alone with some help from my mentor and NO PAY so far. Is it worth staying to complete the whole app ?

February 22, 2022 at 08:25AM by RANDYAtecandy
https://ift.tt/vGOSsID
New post on /r/flutterdev subreddit:

For Flutter and Transport Geeks: A Tour Through the Code Behind Trufi Apps, Guided by the Lead Developer
https://ift.tt/1BaS87f

February 22, 2022 at 12:52PM by TrufiAssociation
https://ift.tt/VjfW7RH
New post on /r/flutterdev subreddit:

What's the (oldest) Dart SDK version are you using?
I've been wondering how frequently Dart/Flutter devs update their SDK; is there a good source for that? Otherwise, let's have a poll... :-)If you have multiple active projects, please state the lowest version used.View Poll

February 22, 2022 at 03:22PM by greenrobot_de
https://ift.tt/n9JDCIz
New post on /r/flutterdev subreddit:

Need advise
Hi,I am in a bit of a fix.I am getting an android app developed. The developer was making it in Flutter i believe.Halfway through the project, the developer has gone rogue, not responding to messages and callsI do have the apk of what he has build till now.Is there anyway i can hire a new developer and they can build on this apk or do i need to start from scratch again?

February 22, 2022 at 03:21PM by intelligentinsanity
https://ift.tt/GFSpswd
New post on /r/flutterdev subreddit:

Customer engagement can be defined as an emotional connect between a consumer and a brand through various online/offline channels. Read our datasheet to understand the importance of customer engagement and how you can engage consumers. Visit Nitor Infotech to know more about mobility engineering
Datasheet

February 22, 2022 at 04:34PM by Nitorblog
https://ift.tt/WxDSQkF
New post on /r/flutterdev subreddit:

FlutterFlow - opinions - and does it perform well in terms of speed (load up and widget building) ?
I'm coming from Kivy/Python and find that its quite slow. My app takes 5 seconds to load up, and widget building is slow too.I'm assuming FlutterFlow is Java based. Is it good in terms of load-up speed and widget building speed.Finally , would you guys recommend FlutterFlow or something else for someone like me who has no Java experience?

February 22, 2022 at 05:56PM by Ian_SAfc
https://ift.tt/PHiFxnQ
New post on /r/flutterdev subreddit:

How to Reduce the Size of Your Flutter Package
https://ift.tt/KXe8xdr

February 22, 2022 at 05:32PM by maco6461
https://ift.tt/L9E0feQ
New post on /r/flutterdev subreddit:

Should I switch to MacOs.
Hello,I currently use a Dekstop Pc with an Amd Ryzen 7 1700x and a GTX 1080. The problem is I want also to program my Apps to IOS. So I need MacOs.I have tried to emulate MacOs but this is not working really well on this system.In the next year, I need to go often abord so it a Macbook would be the better choice. The problem is, I never had a MacBook so I don't know how good the performance is. Will I be disappointed with a MacBook Air with 16Gb Ram or will this work fine.​Mainly I use my Pc to program Flutter and sometimes do a little bit of Video editing but only basic stuff.I would love to hear your opinion.

February 22, 2022 at 06:31PM by Marc_4k
https://ift.tt/8UvBw13
New tweet from FlutterDev:

💡 How many Flutter users are using Flutter as part of their main job?— Flutter (@FlutterDev) Feb 22, 2022

February 22, 2022 at 11:02PM
https://twitter.com/FlutterDev/status/1496244012189167617