Skip to content

Instantly share code, notes, and snippets.

View abdullahmansss's full-sized avatar
👨‍💻
Coding...

Abdullah Mansour abdullahmansss

👨‍💻
Coding...
View GitHub Profile
import 'dart:developer';
class Date {
final dynamic year;
final dynamic month;
final dynamic day;
Date({
required this.year,
required this.month,
@abdullahmansss
abdullahmansss / FCM Rest APIs
Last active December 2, 2022 22:34
How to implement (FCM Rest APIs)
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
@abdullahmansss
abdullahmansss / text form field with country picker
Created November 9, 2021 09:54
text form field with country picker
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(