This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Directionality( | |
textDirection: TextDirection.ltr, | |
child: TextFormField( | |
controller: phoneController, | |
style: Theme.of(context).textTheme.subtitle1!.copyWith( | |
fontWeight: FontWeight.w500, | |
), | |
keyboardType: TextInputType.phone, | |
decoration: InputDecoration( | |
border: const OutlineInputBorder( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps: | |
1. make sure to save device token in database related to user (when register a new user). | |
2. make sure to update device token every time user logging in app. | |
3. implement code ... | |
fcm api documnetation link : https://firebase.flutter.dev/docs/messaging/notifications#via-rest | |
method type : POST | |
base url : https://fcm.googleapis.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:developer'; | |
class Date { | |
final dynamic year; | |
final dynamic month; | |
final dynamic day; | |
Date({ | |
required this.year, | |
required this.month, |