Hey Flutter fam! ๐ I'm absolutely thrilled to share my very first open-source package with you all! After months of hard work, I'm excited to introduce flutter_v2ray_client - a powerful Flutter plugin that brings the full power of V2Ray/Xray to your mobile applications! ๐
๐ฏ What Makes This Special?
As someone who's passionate about privacy and performance, I wanted to create something that would make it incredibly easy for Flutter developers to integrate robust VPN and proxy functionality into their apps. This isn't just another wrapper - it's a thoughtfully designed, modern Flutter plugin with a clean API that you'll actually enjoy using! ๐
โจ Key Features That'll Blow Your Mind
๐ Dual Mode Support
- VPN Mode: Full system-level tunneling for complete privacy protection
- Proxy Mode: Lightweight proxy-only connections for specific app traffic
๐ Multi-Protocol Powerhouse
Seamlessly works with:
- VMess - The classic choice for speed and reliability
- VLess - Lightweight and efficient modern protocol
- Trojan - Stealthy connections that blend with normal traffic
- Socks - Universal proxy protocol support
- ShadowSocks - Popular choice for censorship resistance
๐ Real-Time Monitoring Dashboard
Get live updates on:
- Connection status and health
- Upload/download speeds
- Total traffic usage
- Connection duration
- Server response times
๐๏ธ Flexible Configuration
// Parse any V2Ray sharing link effortlessly
V2RayURL parser = V2ray.parseFromURL("your_v2ray_link_here");
// Customize everything to your needs
parser.inbound['port'] = 10890;
parser.log['loglevel'] = 'info';
parser.dns = {"servers": ["1.1.1.1"]};
๐ก๏ธ Smart Traffic Management
- App Exclusion: Choose specific apps to bypass VPN traffic
- LAN Bypass: Keep local network traffic flowing normally
- Socket Protection: Prevents connection loops and ensures stability
๐ Getting Started (It's Super Easy!)
1๏ธโฃ Add to Your Project
flutter pub add flutter_v2ray_client
2๏ธโฃ Basic Implementation
import 'package:flutter_v2ray_client/flutter_v2ray.dart';
final V2ray v2ray = V2ray(
onStatusChanged: (status) {
print('Connection status: ${status.state}');
},
);
// Initialize and connect
await v2ray.initialize(
notificationIconResourceType: "mipmap",
notificationIconResourceName: "ic_launcher",
);
V2RayURL parser = V2ray.parseFromURL("your_v2ray_link_here");
if (await v2ray.requestPermission()) {
await v2ray.startV2Ray(
remark: parser.remark,
config: parser.getFullConfiguration(),
proxyOnly: false,
);
}
๐จ Real-World Usage
Imagine building apps like:
- Privacy-First Browsers ๐ก๏ธ
- Secure Messaging Apps ๐ฌ
- Streaming Media Players ๐ฅ
- Corporate VPN Solutions ๐ข
- Developer Tools โ๏ธ
๐ What's Under the Hood?
- Android-First: Built with Xray 25.9.11 core for maximum performance
- Modern Flutter: Compatible with Flutter 3.16.0+ and Dart 3.1.0+
- Clean Architecture: Platform interface ready for iOS, Windows, Linux, macOS expansion
- Google Play Ready: Full Android 16 KB page size support
- Open Source: MIT licensed for maximum community benefit
๐ฏ Perfect For
โ
App Developers wanting to add VPN functionality
โ
Privacy Advocates building secure applications
โ
Network Engineers creating custom proxy solutions
โ
Students learning Flutter plugin development
โ
Companies needing enterprise VPN solutions
๐ฃ๏ธ Roadmap & Future Plans
I'm committed to making this the best Flutter VPN solution out there! Here's what's coming:
๐ Performance Boost
- Integration with hev-socks5-tunnel for blazing-fast speeds
- Enhanced connection stability and resource efficiency
๐ Multi-Platform Expansion
- iOS Support (community donations welcome!)
- Windows, Linux, macOS desktop versions
- Cross-platform consistency
โก Advanced Features
- Traffic routing and filtering
- Custom UI components
- Extended protocol support
๐ Community Love
This project thrives on community contributions! Whether you're:
- ๐ Reporting bugs or suggesting improvements
- ๐ป Contributing code to new features
- ๐ Improving documentation
- ๐จ Creating example apps
- ๐ Spreading the word
Every contribution makes a difference! Check out our Contributing Guide to get started.
๐จโ๐ป About Me
Hey there! I'm Amir, a passionate Full Stack developer who loves creating tools that make privacy and security accessible to everyone. This is my first major open-source contribution, and I'm incredibly excited to share it with the community!
๐ฑ Portfolio: Check out more of my work at Amir Ziari Portfolio
๐ Final Thoughts
Building flutter_v2ray_client has been an incredible journey of learning and growth. I'm so grateful to the Flutter community for the amazing ecosystem that made this possible, and I can't wait to see what you'll build with it!
Ready to supercharge your Flutter apps with VPN capabilities? Give flutter_v2ray_client a try today! ๐
Tags: #Flutter #VPN #V2Ray #XRay #Android #Proxy #Dart #OpenSource #Privacy #MobileDevelopment
Links:
- ๐ฆ GitHub Repository
- ๐ Documentation
- ๐ฌ Issues & Discussions
- ๐ Star the Project
Have questions? Found a bug? Want to contribute? I'd love to hear from you! Drop a comment below or reach out on GitHub. Let's build something amazing together! ๐ฏ