This Flutter project demonstrates how to manage user sessions using shared preferences. It includes a basic login system, session management, and logout functionality.
- Simple login and logout functionality
- Persistent login state using shared preferences
- Example of session management/session handling in Flutter
- Flutter: For building the mobile application.
- Dart: Programming language used by Flutter.
- Shared Preferences: A Package used for storing key-value pairs on the device.
- Flutter SDK installed
- Dart installed
- An editor like VS Code or Android Studio
-
Clone the repository:
git clone https://github.com/AayushPaigwar/flutter-session-management.git cd flutter-session-management
-
Install dependencies:
flutter pub get
-
Run the project:
flutter run
flutter-session-management
├── android
├── ios
├── lib
│ ├── home_page.dart # Home page UI
│ ├── login.dart # Login page UI
│ └── main.dart # Main entry point
├── .gitignore
├── pubspec.yaml # Project dependencies
├── README.md # Project documentation
└── LICENSE # MIT License
Contributions are welcome! Feel free to submit a pull request or open an issue to improve the project.
Distributed under the MIT License. See LICENSE for more information.
Happy coding! 🚀