Flutter Local Notifications & Sqflite Explained Step by Step | Part 3

Channel:
Subscribers:
135,000
Published on ● Video Link: https://www.youtube.com/watch?v=pQSTgf-6hDk



Category:
Tutorial
Duration: 2:10:25
32,906 views
714


In this tutorial, we explained local notifications with Sqflite step by step. Local notifications included immediate notification, scheduled notification, zonedSchedule. And Sqflite included create, delete, update and insert method. All the crud functions of sqflite is there.

This notification app also work like alarm app. This covers both ios and android settings as well. If you want to see the previous part follow the link
Part one https://youtu.be/2L8maZUY2hU
Part two https://youtu.be/6SaCntGgi5o

Get the complete code from here flutter 3.4 version
https://www.buymeacoffee.com/dbestech/e/124108

Twitter @dbestech
Facebook page https://www.facebook.com/dbestech

Learn more about notifications
https://www.dbestech.com/tutorials/flutter-local-notification-explained-for-ios-and-android
Learn more about sqflite
https://www.dbestech.com/tutorials/flutter-sqflite-tutorial-example

We also covered how to make flutter getx listview with obx and obs.
More about GetX
https://www.dbestech.com/tutorials/flutter-getx-app-tutorial

Code for task_tile.dart

class TaskTile extends StatelessWidget {
final Task? task;
TaskTile(this.task);

@override
Widget build(BuildContext context) {
return Container(
padding:
EdgeInsets.symmetric(horizontal: 20),
width: MediaQuery.of(context).size.width,
margin: EdgeInsets.only(bottom: 12),
child: Container(
padding: EdgeInsets.all(16),
// width: SizeConfig.screenWidth * 0.78,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16),
color: _getBGClr(task?.color??0),
),
child: Row(children: [
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
task?.title??"",
style: GoogleFonts.lato(
textStyle: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.white),
),
),
SizedBox(
height: 12,
),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Icon(
Icons.access_time_rounded,
color: Colors.grey[200],
size: 18,
),
SizedBox(width: 4),
Text(
"${task!.startTime} - ${task!.endTime}",
style: GoogleFonts.lato(
textStyle:
TextStyle(fontSize: 13, color: Colors.grey[100]),
),
),
],
),
SizedBox(height: 12),
Text(
task?.note??"",
style: GoogleFonts.lato(
textStyle: TextStyle(fontSize: 15, color: Colors.grey[100]),
),
),
],
),
),
Container(
margin: EdgeInsets.symmetric(horizontal: 10),
height: 60,
width: 0.5,
color: Colors.grey[200]!.withOpacity(0.7),
),
RotatedBox(
quarterTurns: 3,
child: Text(
task!.isCompleted == 1 ? "COMPLETED" : "TODO",
style: GoogleFonts.lato(
textStyle: TextStyle(
fontSize: 10,
fontWeight: FontWeight.bold,
color: Colors.white),
),
),
),
]),
),
);
}

_getBGClr(int no) {
switch (no) {
case 0:
return bluishClr;
case 1:
return pinkClr;
case 2:
return yellowClr;
default:
return bluishClr;
}
}
}




Other Videos By dbestech


2021-11-13Flutter Dart Double Dots ..| Dart Operators | Cascading
2021-11-13Flutter TabBar and TabBarView Without Scaffold & AppBar | Custom Indicator & TabBarController
2021-11-10Flutter Provider and ChangeNotifier With Listener for State Management | Example
2021-11-07Laravel 8 | Multi Language Websites With Laravel Route Groups |The Easiest & Efficient Way
2021-11-05Flutter setState() and Callback Function(with parameters) for Passing Data Between Classes
2021-11-03Flutter Firebase App Setup Tutorial & Getx Authentication | Using Email & Password | Part 2
2021-11-01Flutter Firebase App | Step by Step for Beginners to Advanced | Login & Sign up | Auth Page - Part 1
2021-10-30Simplest Explanation Flutter BLoc Pattern | States and Events | mapEventToState
2021-10-29Pubspec.yaml error A package may not list itself as a dependency.
2021-10-23Flutter Multiple Selection | Filter ListView Category Using Map Where() & Contain() | Getx
2021-10-21Flutter Local Notifications & Sqflite Explained Step by Step | Part 3
2021-10-15Flutter Payment App | Laravel Backend Admin Panel | GetX Rest API | Getx Obs and Obx
2021-10-06Must Know Dart List and Map for Flutter App Dev | forEach() map() toList()
2021-10-02Flutter Payment App | App Development Tutorial for Beginners for iOS and Android from Scratch
2021-09-23Flutter App Using Sqlite & Sqflite CRUD With Local Scheduled Notifications | GetX Listview | Part 2
2021-09-19Flutter Dynamic Theme Change | Local Push Notification | Get Storage | Beginners App iOS | Android
2021-09-06Flutter Video Player Tutorial With Controls Fullscreen | Aspect Ratio ListView | Url Example
2021-08-27Flutter App Development Tutorial for Beginners iOS | Android | Complex UI | Training App GetX
2021-08-19Complete Flutter Web App | A Responsive Website Tutorial for Beginners
2021-08-15Flutter Getx App Tutorial | Flutter App Development Tutorial | State management
2021-08-13Flutter Text Animation | Text Widget Style and Animated Container



Tags:
flutter local notifications
flutter sqflite tutorial
flutter scheduled notitications
flutter tutorial
flutter tutorials for beginners
flutter crud tutorial
flutter curd rest api
flutter app
flutter sqlite listview
flutter getx listview
flutter immediate notification
flutter theme changed
flutter notifications ios
flutter notifications listener