launchUrlLite method
Implementation
Future<void> launchUrlLite() async {
final theme = Theme.of(Get.context!);
try {
await lite.launchUrl(
Uri.parse('https://flutter.dev'),
options: lite.LaunchOptions(
barColor: theme.colorScheme.surface,
onBarColor: theme.colorScheme.onSurface,
barFixingEnabled: false,
),
);
} catch (e) {
// If the URL launch fails, an exception will be thrown. (For example, if no browser app is installed on the Android device.)
debugPrint(e.toString());
}
}