Code Snippets

How to find # tag in a string

void main() { String strWithNum = """ Hubble is hiring! Hubble is looking for a Community Manager to join th…

How to run multiple Dart futures in parallel

How to run multiple Dart futures in parallel If you ever need to run multiple   Dart   futures in parallel (simultaneously…

add data google sheet using flutter

code.gs: function doGet(request){ // Open Google Sheet using ID var sheet = SpreadsheetApp.openById("1OOArrqjOqm…

Quick accetions in flutter

Add   quick_actions: ^0.3.0+2 package in your .yaml file import the quick_actions package and create a new instance of the…

Get permission in flutter

First, add permission handeler package in your .yaml file permission_handler: ^3.1.0 Then, make this class in your pro…

Google signin in flutter

First, add these packages to your .yaml file firebase_core: ^0.5.0 firebase_auth: ^0.18.0+1 google_sign_in: ^4.5.3 …

How to send email from dart?

mailer mailer  is an easy-to-use library for composing and sending emails in Dart. Mailer supports file attachments and HT…

Bottom Navigation Bar

//A demo to implement bottomnavigationbar in flutter class _ChatPageState extends State { int _selectedIndex = 0; …

Time and Date Picker in flutter

Time Picker TimeOfDay selectedTime = TimeOfDay.now(); Future _selectTime(BuildContext context) async { final TimeOfDay…

Load More
That is All