- Customizable url launcher with AppBar for navigation and also a refresh button available
- Android
- IOS
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
url_launcher_plus:
- minSdkVersion >= 19
defaultConfig {
minSdkVersion 19
...
}
- Import the package and use it in your Flutter App.
import 'package:flutter_gearbox/url_launcher_plus.dart';
void navigate(BuildContext context) {
Navigator.push(
UrlLauncher(
launchUrl: "https://google.com/",
backgroundColor: Colors.blue,
blockUrls: ['blockThisSite.com1', 'blockThisSite.com2'],
onClose: () {...},
iconColor: Colors.white,
onRefresh: () {...},
onProgress: () {...},
onUrlChange: () {...},
onPageStarted: () {...},
onPageFinished: () {...},
onNavigationRequest: () {...},
onWebResourceError: () {...},
));
}
- More features to be added
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.