22 lines
719 B
Dart
22 lines
719 B
Dart
|
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:flutter_mobx/flutter_mobx.dart';
|
||
|
|
import 'package:frosty/screens/settings/stores/settings_store.dart';
|
||
|
|
import 'package:frosty/screens/settings/widgets/settings_list_switch.dart';
|
||
|
|
|
||
|
|
class ExternalBrowserSetting extends StatelessWidget {
|
||
|
|
final SettingsStore settingsStore;
|
||
|
|
|
||
|
|
const ExternalBrowserSetting({super.key, required this.settingsStore});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return Observer(
|
||
|
|
builder: (context) => SettingsListSwitch(
|
||
|
|
title: 'Open links in external browser',
|
||
|
|
value: settingsStore.launchUrlExternal,
|
||
|
|
onChanged: (newValue) => settingsStore.launchUrlExternal = newValue,
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|