New post on /r/flutterdev subreddit:
How to human Test your iOS Flutter App with your dev API
Is it okay to upload a build of your App to TestFight linked to your dev API for your team to test & than upload a new build linked to prod API or are the better practices for internal testing iOS Flutter Apps ?We need to test our App on our Dev API to execute certain aspects of it without impacting our Prod Database
February 21, 2022 at 01:51PM by Isifdis
https://ift.tt/59hRCGq
How to human Test your iOS Flutter App with your dev API
Is it okay to upload a build of your App to TestFight linked to your dev API for your team to test & than upload a new build linked to prod API or are the better practices for internal testing iOS Flutter Apps ?We need to test our App on our Dev API to execute certain aspects of it without impacting our Prod Database
February 21, 2022 at 01:51PM by Isifdis
https://ift.tt/59hRCGq
reddit
How to human Test your iOS Flutter App with your dev API
Is it okay to upload a build of your App to TestFight linked to your dev API for your team to test & than upload a new build linked to prod API or...
New post on /r/flutterdev subreddit:
A more type-safe i18n solution (supports Lists, Maps, Plurals, Gender, Interfaces, etc.)
https://ift.tt/6wW9Eko
February 21, 2022 at 02:45PM by Tienisto
https://ift.tt/6NkY70n
A more type-safe i18n solution (supports Lists, Maps, Plurals, Gender, Interfaces, etc.)
https://ift.tt/6wW9Eko
February 21, 2022 at 02:45PM by Tienisto
https://ift.tt/6NkY70n
Dart packages
fast_i18n | Flutter package
Localization / Internationalization (i18n) solution. Use JSON, YAML or CSV files to create typesafe translations via source generation.
New post on /r/flutterdev subreddit:
Flutter Change/Lock Device Orientation to Portrait/Landscape Only - FlutterBeads
https://ift.tt/0H2UKDn
February 21, 2022 at 02:24PM by pinkeshdarji
https://ift.tt/MEX3KGY
Flutter Change/Lock Device Orientation to Portrait/Landscape Only - FlutterBeads
https://ift.tt/0H2UKDn
February 21, 2022 at 02:24PM by pinkeshdarji
https://ift.tt/MEX3KGY
FlutterBeads
Flutter Change/Lock Device Orientation to Portrait/Landscape Only - FlutterBeads
<span class="rt-reading-time" style="display: block;"><span class="rt-label rt-prefix"></span> <span class="rt-time">4</span> <span class="rt-label rt-postfix">min read</span></span> While developing your Flutter app, you may have a requirement to disable…
New post on /r/flutterdev subreddit:
62% of leaders think that a mobile strategy is a must for any business. Mobility engineering helps businesses stay connected real-time with their customers, foster efficiency, and gain a competitive edge. Visit Nitor Infotech to know more about our mobility engineering services.
MOBILITY ENGINEERING
February 21, 2022 at 02:22PM by Nitorblog
https://ift.tt/FM5sd13
62% of leaders think that a mobile strategy is a must for any business. Mobility engineering helps businesses stay connected real-time with their customers, foster efficiency, and gain a competitive edge. Visit Nitor Infotech to know more about our mobility engineering services.
MOBILITY ENGINEERING
February 21, 2022 at 02:22PM by Nitorblog
https://ift.tt/FM5sd13
Nitorinfotech
Mobile App Development Services | Nitor Infotech
Engage with our expert mobile app development services for innovative solutions. Enhance user engagement and business growth. Nitor Infotech | USA | India
New post on /r/flutterdev subreddit:
How to restore application state if it's killed by the OS
https://ift.tt/t3MANvn
February 21, 2022 at 03:19PM by luccascorrea
https://ift.tt/2P4z8q5
How to restore application state if it's killed by the OS
https://ift.tt/t3MANvn
February 21, 2022 at 03:19PM by luccascorrea
https://ift.tt/2P4z8q5
Medium
State restoration in Flutter
When writing an app, it’s common not to worry about what happens to it when it goes to the background, as you only care about what the user…
New post on /r/flutterdev subreddit:
Late variable declaration can access members in its initializer 🤯
I just discovered that if you declare a variable with late, you can access members of the class in its initializer. Can someone explain me why it's working and if it's safe to do so instead of using initState ?
February 21, 2022 at 05:02PM by Pierre2tm
https://ift.tt/zvqcdX4
Late variable declaration can access members in its initializer 🤯
I just discovered that if you declare a variable with late, you can access members of the class in its initializer. Can someone explain me why it's working and if it's safe to do so instead of using initState ?
class _ExampleState extends State<Example> with SingleTickerProviderStateMixin { _ExampleState(); Duration get computeDuration => const Duration(seconds: 1); // Error: computeDuration can't be accessed in an initializer // Error: invalid reference to this final AnimationController finalController = AnimationController( duration: computeDuration, vsync: this, ); // Working late AnimationController lateController = AnimationController( duration: computeDuration, vsync: this, ); }
February 21, 2022 at 05:02PM by Pierre2tm
https://ift.tt/zvqcdX4
reddit
Late variable declaration can access members in its initializer 🤯
I just discovered that if you declare a variable with late, you can access members of the class in its initializer. Can someone explain me why...
New post on /r/flutterdev subreddit:
Drip, A free Youtube music client built with Flutter.
Project GitHub - https://github.com/Spsden/DripWhat is it ?Drip is a YouTube music client built using flutter. It uses unofficial YouTube Music Api .Features ..Open SourceYouTube Search Artist, tracks , albums and community Playlists.YouTube music HomepageLoads related tracks when you play a trackFluent design language (Microsoft Windows)No ads (Doesn't need YouTube premium)Does not need login or api key or anything as such.Please note this is a very early release that I couldn't wait to share. There are still a lot of bugs and inactive options. I am actively working on it after school hours.This is my First flutter app and I built it while learning the framework. Hope you like it.
February 21, 2022 at 04:35PM by Vismrit
https://ift.tt/fECKh6U
Drip, A free Youtube music client built with Flutter.
Project GitHub - https://github.com/Spsden/DripWhat is it ?Drip is a YouTube music client built using flutter. It uses unofficial YouTube Music Api .Features ..Open SourceYouTube Search Artist, tracks , albums and community Playlists.YouTube music HomepageLoads related tracks when you play a trackFluent design language (Microsoft Windows)No ads (Doesn't need YouTube premium)Does not need login or api key or anything as such.Please note this is a very early release that I couldn't wait to share. There are still a lot of bugs and inactive options. I am actively working on it after school hours.This is my First flutter app and I built it while learning the framework. Hope you like it.
February 21, 2022 at 04:35PM by Vismrit
https://ift.tt/fECKh6U
GitHub
GitHub - Spsden/Drip: A Youtube Music client for Desktop. (in Development)
A Youtube Music client for Desktop. (in Development) - Spsden/Drip
New post on /r/flutterdev subreddit:
🚀 Top 12 Flutter Development Tools. Here is a list of some of the development tools I am using since I started developing with Flutter a little over two years ago.
https://ift.tt/aXqso0k
February 21, 2022 at 05:24PM by rinchapincha
https://ift.tt/Lz0BcMt
🚀 Top 12 Flutter Development Tools. Here is a list of some of the development tools I am using since I started developing with Flutter a little over two years ago.
https://ift.tt/aXqso0k
February 21, 2022 at 05:24PM by rinchapincha
https://ift.tt/Lz0BcMt
Medium
Top 12 Flutter Development Tools
Here is a list of some of the development tools I am using since I started developing with Flutter a little over two years ago.
New tweet from FlutterDev:
📣🧩 ONE week left to submit your project! To mark this milestone, we're announcing our judges for the #FlutterPuzzleHack! Don't forget to submit your project before February 28th for a chance to win big. 🏆 Get started 👉 https://t.co/fH3oUV69UE https://t.co/z2DysxPgqU— Flutter (@FlutterDev) Feb 21, 2022
February 21, 2022 at 06:00PM
https://twitter.com/FlutterDev/status/1495805520917192713
📣🧩 ONE week left to submit your project! To mark this milestone, we're announcing our judges for the #FlutterPuzzleHack! Don't forget to submit your project before February 28th for a chance to win big. 🏆 Get started 👉 https://t.co/fH3oUV69UE https://t.co/z2DysxPgqU— Flutter (@FlutterDev) Feb 21, 2022
February 21, 2022 at 06:00PM
https://twitter.com/FlutterDev/status/1495805520917192713
Flutter Puzzle Hack
Push your creativity to its limits by reimagining this classic puzzle!
New post on /r/flutterdev subreddit:
Flutter Tutorial For Beginners: Using Enums
https://youtu.be/sPtEYDr-cjU
February 21, 2022 at 07:08PM by projectmind_guru
https://ift.tt/teMXSmg
Flutter Tutorial For Beginners: Using Enums
https://youtu.be/sPtEYDr-cjU
February 21, 2022 at 07:08PM by projectmind_guru
https://ift.tt/teMXSmg
YouTube
Flutter Tutorial For Beginners: Using Enums - Decider Part 13
See how to use an enum in your flutter app to control the state of a view.
🏷 Get 15% off my Flutter Monetization course with code YOUTUBE_SUBSCRIBER https://1manstartup.com/monetize
📲 Download the completed app: https://1manstartup.com/decider
💬 Join…
🏷 Get 15% off my Flutter Monetization course with code YOUTUBE_SUBSCRIBER https://1manstartup.com/monetize
📲 Download the completed app: https://1manstartup.com/decider
💬 Join…
New post on /r/flutterdev subreddit:
What do you advise a beginner who is just starting to learn Flutter?
Any help? courses or websites do you recommend? Any study strategy?Any general advice? just anything...
February 21, 2022 at 07:05PM by MedEMPIRE
https://ift.tt/uNxfpAC
What do you advise a beginner who is just starting to learn Flutter?
Any help? courses or websites do you recommend? Any study strategy?Any general advice? just anything...
February 21, 2022 at 07:05PM by MedEMPIRE
https://ift.tt/uNxfpAC
Reddit
From the FlutterDev community on Reddit
Explore this post and more from the FlutterDev community
New post on /r/flutterdev subreddit:
Where/What should I learn next? - Begginner here (backend)
Hey y'all, so, I know I'll look ridiculous writing this on this subreddit, but I consider myself almost a complete begginer. I'm now on my second "masterclass" app video, as the first one was a WorldTimeApp (By Net Ninja) that I followed but wasn't able to finish as some things that he used weren't able now (tutorial is 2+ years old, some things are no longer up and running).I figured out that I'd try another one of these longer tutorials, as I've been really enjoying all of this, and it's all quite new to me (all my coding background comes from a scratchy ass subject i had in high school).I've picked this 4hr long tutorial by "dbestech" (link: https://www.youtube.com/watch?v=x4DydJKVvQk&t=5460s), and it was going incredible till I hit a wall (at around 3:10:00). We've come to what I think is the start of the making of the backend portion of the app, and I can't baically understand a thing of what he's doing, what software he's using, and the whole setup process. Not to blame on him, the whole tutorial is great, it's just that I have 0 knowledge on this part.With this, could someone tell me what or/and where to iniciate my learning progress in this area? Like what I had to learn so I could follow the rest of the tutorial? (I've watched all over his channel and did not figure out anything that could help me). It doesn't have to specifically the method of this tutorial, just anything that could help me out start learning about this whole other dimension to appdevelopment.Cheers to y'all, have a great day!P.S: I've also published this on r/flutterhelp, just figured out I could post here too as they are so much people online.
February 21, 2022 at 06:43PM by Moms_Spaghetterino
https://ift.tt/FKBlC8t
Where/What should I learn next? - Begginner here (backend)
Hey y'all, so, I know I'll look ridiculous writing this on this subreddit, but I consider myself almost a complete begginer. I'm now on my second "masterclass" app video, as the first one was a WorldTimeApp (By Net Ninja) that I followed but wasn't able to finish as some things that he used weren't able now (tutorial is 2+ years old, some things are no longer up and running).I figured out that I'd try another one of these longer tutorials, as I've been really enjoying all of this, and it's all quite new to me (all my coding background comes from a scratchy ass subject i had in high school).I've picked this 4hr long tutorial by "dbestech" (link: https://www.youtube.com/watch?v=x4DydJKVvQk&t=5460s), and it was going incredible till I hit a wall (at around 3:10:00). We've come to what I think is the start of the making of the backend portion of the app, and I can't baically understand a thing of what he's doing, what software he's using, and the whole setup process. Not to blame on him, the whole tutorial is great, it's just that I have 0 knowledge on this part.With this, could someone tell me what or/and where to iniciate my learning progress in this area? Like what I had to learn so I could follow the rest of the tutorial? (I've watched all over his channel and did not figure out anything that could help me). It doesn't have to specifically the method of this tutorial, just anything that could help me out start learning about this whole other dimension to appdevelopment.Cheers to y'all, have a great day!P.S: I've also published this on r/flutterhelp, just figured out I could post here too as they are so much people online.
February 21, 2022 at 06:43PM by Moms_Spaghetterino
https://ift.tt/FKBlC8t
YouTube
Flutter Master Class Travel App | Flutter 3.10.0 for Beginners to Advanced | iOS & Android Cubit
From this tutorial we build a flutter cubit / bloc state management app. We will build it step by step. We will also build the ui and do api request. We will cover http get request and load the data using flutter cubit or bloc. We will also see how to use…
New post on /r/flutterdev subreddit:
Flutter Tutorial: Coffee App Splash Screen Animation (Lottie)
https://youtu.be/as19Hq1SrPw
February 21, 2022 at 06:34PM by JideGuru
https://ift.tt/2GBRf0I
Flutter Tutorial: Coffee App Splash Screen Animation (Lottie)
https://youtu.be/as19Hq1SrPw
February 21, 2022 at 06:34PM by JideGuru
https://ift.tt/2GBRf0I
YouTube
Flutter Tutorial: Coffee App Splash Screen Animation (Lottie)
In this video, we'll be working on a simple splash screen animation with Lottie and Implicit animations.
Source Code: https://github.com/JideGuru/youtube_videos/tree/master/coffee_splashscreen
Subscribe: https://www.youtube.com/channel/UCDKCzyQaoyH9pzAvLyCydmw…
Source Code: https://github.com/JideGuru/youtube_videos/tree/master/coffee_splashscreen
Subscribe: https://www.youtube.com/channel/UCDKCzyQaoyH9pzAvLyCydmw…
New post on /r/flutterdev subreddit:
Simple app about your own Solar System. Flutter/Dart
My name is Alexander. I am a beginner mobile developer. My employer gave me a task, but actually i can't understand where should i start, what things to do first of all and etc. There is a task: You need to write a mobile app wich: 1)Contains the sun in middle of screen. 2)There are N planets which spinning around the sun; 3)You should have possibility for adding as many planets as you want. 4)Adding should be on another screen. 5)For adding the planet you could point the radius, color, remotness and speed. 6)All planets should be contained inside the screen. Hope my english was good enough to explain my trouble, and i hope somebody will help with that. Wish you all the best.
February 21, 2022 at 07:49PM by Unique_Clue_5040
https://ift.tt/lmPiFfk
Simple app about your own Solar System. Flutter/Dart
My name is Alexander. I am a beginner mobile developer. My employer gave me a task, but actually i can't understand where should i start, what things to do first of all and etc. There is a task: You need to write a mobile app wich: 1)Contains the sun in middle of screen. 2)There are N planets which spinning around the sun; 3)You should have possibility for adding as many planets as you want. 4)Adding should be on another screen. 5)For adding the planet you could point the radius, color, remotness and speed. 6)All planets should be contained inside the screen. Hope my english was good enough to explain my trouble, and i hope somebody will help with that. Wish you all the best.
February 21, 2022 at 07:49PM by Unique_Clue_5040
https://ift.tt/lmPiFfk
Reddit
From the FlutterDev community on Reddit
Explore this post and more from the FlutterDev community
New post on /r/flutterdev subreddit:
Flutter and Job Vacancies
Hello, no doubt Flutter is an amazing framework, fast,and so promising… but why there is a shortage/lack of vacancies compared to other cross-platforms?Compared to React Native, the job market is exploding(thanks to expo)… while flutter is not…Is it me seeing a shortage in jobs or there is a reason behind this?
February 21, 2022 at 07:25PM by berserhyena
https://ift.tt/zTwKIGv
Flutter and Job Vacancies
Hello, no doubt Flutter is an amazing framework, fast,and so promising… but why there is a shortage/lack of vacancies compared to other cross-platforms?Compared to React Native, the job market is exploding(thanks to expo)… while flutter is not…Is it me seeing a shortage in jobs or there is a reason behind this?
February 21, 2022 at 07:25PM by berserhyena
https://ift.tt/zTwKIGv
reddit
Flutter and Job Vacancies
Hello, no doubt Flutter is an amazing framework, fast,and so promising… but why there is a shortage/lack of vacancies compared to other...
New post on /r/flutterdev subreddit:
By FAR my biggest pain with developing flutter is xcode build errors related to my firebase dependencies.
Am I the only one who has this problem? Because it is driving me bonkers.I use firebase services in my app, and building on iOS is a terror and anxiety inducing experience, because I never know when I am going to get some obscure build error related to one of my firebase dependencies.I have quite commonly recieved obscure build errors related to firebase and pod install procedure, or xcode build. Usually something to dop with some module.It seems like the only way to build a flutter developer is to become an absolute expert on the ios and pods build system and dependency management./rant
February 21, 2022 at 09:10PM by reddittrollguy
https://ift.tt/p7yz1X4
By FAR my biggest pain with developing flutter is xcode build errors related to my firebase dependencies.
Am I the only one who has this problem? Because it is driving me bonkers.I use firebase services in my app, and building on iOS is a terror and anxiety inducing experience, because I never know when I am going to get some obscure build error related to one of my firebase dependencies.I have quite commonly recieved obscure build errors related to firebase and pod install procedure, or xcode build. Usually something to dop with some module.It seems like the only way to build a flutter developer is to become an absolute expert on the ios and pods build system and dependency management./rant
February 21, 2022 at 09:10PM by reddittrollguy
https://ift.tt/p7yz1X4
reddit
By FAR my biggest pain with developing flutter is xcode build...
Am I the only one who has this problem? Because it is driving me bonkers. I use firebase services in my app, and building on iOS is a terror and...
New post on /r/flutterdev subreddit:
Flutter Tap Weekly Newsletter Week 123 - Tutorials, videos, packages, and much more!
https://ift.tt/n3uhNOc
February 21, 2022 at 08:17PM by vensign
https://ift.tt/3EivILq
Flutter Tap Weekly Newsletter Week 123 - Tutorials, videos, packages, and much more!
https://ift.tt/n3uhNOc
February 21, 2022 at 08:17PM by vensign
https://ift.tt/3EivILq
Fluttertap
Newsletter Issue 123
Flutter Tap newsletter with the latest of Flutter. Articles, tutorials, videos and much more - Issue 123
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
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
reddit
Does the jit compiler translate the source code to machine...
And if it translates it to an intermediary language then how does the program run?
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
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
GitHub
GitHub - Enzodtz/flutter-jwt-auth-template: An example of JWT authentication with flutter.
An example of JWT authentication with flutter. Contribute to Enzodtz/flutter-jwt-auth-template development by creating an account on GitHub.
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.3main.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
Cannot get RiverPod 1.0+ to work... Help!
pubspec.yaml:flutter_hooks: ^0.18.2+1
hooks_riverpod: ^1.0.3main.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
reddit
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'; ...
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
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
reddit
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...