Комментарии:
for android u may not get notification so add icon attribute in AndroidNotificationDetails
AndroidNotificationDetails(
'your channel id', 'your channel name',
importance: Importance.max, priority: Priority.high,
icon: 'app_icon'
)
like above
thank you
My friends ihave application for learning English language with video and voice are you help me with sqlflite
ОтветитьReally good video, can I use it for my own app with a few changes?
Ответитьhello ,
I have error , help me pls. :(
---------------------
" * What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_native_timezone' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50 "
---------------------
My informations :
ext.kotlin_version = '1.7.10'
classpath 'com.android.tools.build:gradle:7.3.0'
sdk: '>=3.0.6 <4.0.0'
hello
I encountered this error when I tried to run the program, and when I delete the flutter_native_timeZone plugin, it does not give an error.
A problem occurred configuring project ':flutter_native_timezone'.
> Could not resolve all files for configuration ':flutter_native_timezone:classpath'.
hey im running the app in chrome but the notifications do not display, why? am i wrong with using chrome?
Ответитьawait flutterLocalNotificationsPlugin.initialize(
initializationSettings,
onSelectNotification: selectNotification);
}
hey, may you plz help here, the (onSelectNotification) is giving an error. it says the name is undefined. what can i do.
i am following your code but when i create local notification i am facing error in onSelectNotification ex parameter not defined i can't fix it can u help me with that
ОтветитьIn NotifyHelper
onSelectNotification not work under flutterLocalNotificationsPlugin.initialize();
why i get error onSelectNotification: selectNotification. is there a way to fix it?
ОтветитьHello, I now encounter another error for the scheduledNotification, the function is not working well as the message 'theme changes 5 seconds ago' is not displayed after 5 second. It have the notification sound after the duration and I only able view the message when I pull down the control center instead of displaying same with the first notification. Any solution to solve it? Anybody have encounter this issues before and solved it?
ОтветитьHello, I am a new learner and have limitation on modifying or debugging the code thus I need your help for Local Push Notification. Please update the code if available. I encounter some errors and unable executing the code, it seems onDidReceiveLocalNotification have change to onDidReceiveNotificationResponse. Please update it with the parameter and functions that you defined previously, I can't apply the selectNotification by changing the details to selectNotification that defined
notificationsPlugin.initialize(
initializationSettings,
onDidReceiveNotificationResponse: (selectNotification) {},
);
and the NotificationDetails notificationDetails =
NotificationDetails(android: androidNotificationDetails);
await notificationsPlugin.show(
0,
'Theme Change',
'You change your theme back!',
notificationDetails,
);
}
which I unable to change to title and body and it will display Undefined name error. I have email you yesterday but not yet get any reply and I need your help. Appreciate your help, thank you.
Appreciate all helping if anyone able to solve my problem or sharing your code with the latest version. Thank you.
Plz can u help
ОтветитьReally good content, i want to ask something , where can i get the appicon.png file
ОтветитьI have problem with androidManifest
Ответитьfor those who are getting error while theme changing like "type 'bool' is not a subtype of type 'String'" use this:
class ThemeService{
final _box = GetStorage();
final _key = 'isDarkMode';
ThemeMode get theme => _loadThemeFromBox() ? ThemeMode.dark : ThemeMode.light;
// according to the string the code is changing bool value
bool _loadThemeFromBox() => _box.read(_key) == 'true' ? true : false;
// in this the bool value is parsed in string
_saveThemeToBox(bool isDarkMode) => _box.write(_key, isDarkMode.toString());
void switchTheme() {
Get.changeThemeMode(_loadThemeFromBox() ? ThemeMode.light : ThemeMode.dark);
// here we are changing according to every selection
_saveThemeToBox(!_loadThemeFromBox());
}
}
hello , i keep on having this error
The named parameter 'onSelectNotification' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'onSelectNotification'.
await flutterLocalNotificationsPlugin.initialize(
initializationSettings,
onSelectNotification: selectNotification);
on this area, i did everything i could , i am a newbie i don't know how to fix futhere
In flutterLocalNotificationsPlugin "onSelectNotification" is not working for android
ОтветитьCan I got GitHub for source code?
ОтветитьThanks buddy u are the best. Just u can past more quickly when u telling something really basic things like theme you know. When ı was see your video duration ı thoguht this is more complicated then ı thoguht but u just spoke about theme around 30+ minutes. :D
ОтветитьAsslaumaleikum. I have a problem with IOSInitializationSettings. The package doesn't have class name IOSInitializationSettings
Ответитьwhat editor are you using
Ответитьcan anyone help me with this :)
Android resource linking failed
ERROR:C:\Users\HP\AndroidStudioProjects\awesome_todo_app\build\app\intermediates\packaged_manifests\debug\AndroidManifest.xml:22: AAPT: error: resource mipmap/ic_launcher (aka com.example.awesome_todo_app:mipmap/ic_launcher) not found.
I am facing error in this line
initializeNotification() async {
//tz.initializeTimeZones();
final IOSInitializationSettings initializationSettingsIOS = IOSInitializationSettings(
requestSoundPermission: false,
requestBadgePermission: false,
requestAlertPermission: false,
onDidReceiveLocalNotification: onDidReceiveLocalNotification
);
The error is there is no class name as IOSInitilaizationSettings . Did you created the class?
if someone has a problem in solving the issue of converting the theme from light mode to the dark mode
this is the solution :
class Themes {
static final light = ThemeData.light().copyWith(
appBarTheme:const AppBarTheme(
backgroundColor: primaryClr,
),
brightness: Brightness.light,
);
static final dark = ThemeData.dark().copyWith(
appBarTheme:const AppBarTheme(
backgroundColor: darkGreyClr,
),
brightness: Brightness.dark,
);
the dark theme using primarycolor or primaryswitch is not working plz tell me how can i do it
ОтветитьThe depth your explanations is stunning.
Ответитьwhat i should do to change the notification icon size
Ответитьhi guys where is the appicon.png ?
Ответитьif anyone want running code , pin me
i will share you via mail or any other channel
Thanks :)
Asalamualaikum, i have an error an onSectNotification it says(The named parameter 'onSelectNotification' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name)
ОтветитьHi,
is this for beginners also? like have you explained all the things in details which you have used in this push notification project?
By this date 2022-09-19 using Flutter Local Notification IOSInitalizationSettings became DarwinInitializationSettings
ОтветитьOh my gosh What I exactly looking for I love you dbestech
ОтветитьSaeee hahahah, you just have to play with the daw and you gaing experience slowly
ОтветитьI liked logic behind Theme mode ❤️ very very informative videos. Thanks for this excellent tutorial.😇
ОтветитьWhat flutter version did you use in this video?
ОтветитьHi I have A Err The Dark Theme And Light Theme Not Working In Android And The Sound Of Notifaction Is nOte Working
Ответитьhi I Have Err The Dark theme And Light Theme Is not working And in Android the sound of notification is not working
ОтветитьHow can I put an edit button when u click on task and redirect it to add task page
Ответитьtz.initializeTimeZones();
Error:The function 'initializeTimeZones' isn't defined
plzz help
Hello Sir
First, I would love to thank you so much for all the information you gave us, it was great to learn so many things from you and I fallowing your steps even I learn from my mistakes and try to solve the errors.
Second, I have an error in this line :
notifyHelper.displayNotification(
Title: "Theme Changed",
body: Get.isDarkMode?"Activated Light Theme" : "Activated Dark Theme"
);
notifyHelper.scheduledNotification();
it asking me to put notifyHelper in local Var, even after I already done in in this line :
class _HomePageState extends State<HomePage> {
var notifyHelper;
@override
void initState() {
// TODO: implement initState
super.initState();
notifyHelper=NotifyHelper();
notifyHelper.initializeNotification();
notifyHelper.requestIOSPermissions();
}
It is great!
ОтветитьI think they have changed the fact that primaryColor changes the appBar Color sir!!Its not working.
Ответитьwhen im input the notifyHelper in _appBar the android studio give me error that say undefined name'notifyHelper'..... anyone have a solution ?
Ответитьwhy if i change the brightness to dark the appbar change into dark color too ??? anyone can explain to me??
ОтветитьMe again, so apparently flutter changed approach with new update you wont see primarySwath (new version of primary color) when you use brightness.dark keep in mind.
ОтветитьHey guys primary color changed to primarySwatch if you dont see effect of changing color
Ответить