- https://api.flutter.dev/flutter/rendering/RenderObject-class.html
- https://api.flutter.dev/flutter/widgets/Element-class.html
- https://abhishekdoshi26.medium.com/deep-dive-into-flutter-trees-542f7395df5c
- https://www.youtube.com/watch?v=HqXNGawzSbY
- https://www.youtube.com/watch?v=9I8xwZXs4h0
- https://www.youtube.com/watch?v=cq34RWXegM8
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
telephony.listenIncomingSms( | |
onNewMessage: (SmsMessage message) { | |
// Handle message | |
}, | |
onBackgroundMessage: backgroundMessageHandler | |
); |
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
backgrounMessageHandler(SmsMessage message) async { | |
//Handle background message | |
// You can also call other plugin in here | |
} | |
void main() { | |
runApp(MyApp()); | |
} |
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
telephony.listenIncomingSms( | |
onNewMessage: (SmsMessage message) { | |
// Handle message | |
}, | |
listenInBackground = false | |
); |
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 'package:telephony/telephony.dart'; | |
final Telephony telephony = Telephony.instance; |
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
<manifest> | |
<uses-permission android:name="android.permission.RECEIVE_SMS"/> | |
<application> | |
... | |
... | |
<receiver android:name="com.shounakmulay.telephony.sms.IncomingSmsReceiver" | |
android:permission="android.permission.BROADCAST_SMS" android:exported="true"> | |
<intent-filter> |