Skip to content

Instantly share code, notes, and snippets.

View BudhabhooshanPatil's full-sized avatar
🏠
Working from home

Bhooshan Patil BudhabhooshanPatil

🏠
Working from home
View GitHub Profile
## Run this command to add this package as a library:
## --> flutter pub add shared_preferences
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
final SharedPreferences prefs = await SharedPreferences.getInstance();