mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 16:00:41 +00:00
added source code list tile
This commit is contained in:
parent
ab0b0cefab
commit
e42982f63b
4 changed files with 22 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
"themeLight": "Light",
|
"themeLight": "Light",
|
||||||
"themeDark": "Dark",
|
"themeDark": "Dark",
|
||||||
"themeSystemDefault": "System default",
|
"themeSystemDefault": "System default",
|
||||||
|
"sourceCode": "Source code",
|
||||||
"version": "Version: {version} ({buildNumber})",
|
"version": "Version: {version} ({buildNumber})",
|
||||||
"@version": {
|
"@version": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:lightmeter/generated/l10n.dart';
|
||||||
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
|
class SourceCodeListTile extends StatelessWidget {
|
||||||
|
const SourceCodeListTile({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return ListTile(
|
||||||
|
leading: const Icon(Icons.code),
|
||||||
|
title: Text(S.of(context).sourceCode),
|
||||||
|
onTap: () {
|
||||||
|
launchUrl(Uri.parse("https://github.com/vodemn/m3_lightmeter"));
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,6 +3,7 @@ import 'package:lightmeter/generated/l10n.dart';
|
||||||
import 'package:lightmeter/res/dimens.dart';
|
import 'package:lightmeter/res/dimens.dart';
|
||||||
|
|
||||||
import 'components/haptics/provider_list_tile_haptics.dart';
|
import 'components/haptics/provider_list_tile_haptics.dart';
|
||||||
|
import 'components/source_code/widget_list_tile_source_code.dart';
|
||||||
import 'components/widget_list_tile_fractional_stops.dart';
|
import 'components/widget_list_tile_fractional_stops.dart';
|
||||||
import 'components/theme/widget_settings_theme.dart';
|
import 'components/theme/widget_settings_theme.dart';
|
||||||
import 'components/widget_label_version.dart';
|
import 'components/widget_label_version.dart';
|
||||||
|
@ -42,6 +43,7 @@ class SettingsScreen extends StatelessWidget {
|
||||||
const StopTypeListTile(),
|
const StopTypeListTile(),
|
||||||
const HapticsListTileProvider(),
|
const HapticsListTileProvider(),
|
||||||
const ThemeSettings(),
|
const ThemeSettings(),
|
||||||
|
const SourceCodeListTile(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -22,6 +22,7 @@ dependencies:
|
||||||
permission_handler: 10.2.0
|
permission_handler: 10.2.0
|
||||||
provider: 6.0.4
|
provider: 6.0.4
|
||||||
shared_preferences: 2.0.15
|
shared_preferences: 2.0.15
|
||||||
|
url_launcher: 6.1.8
|
||||||
vibration: 1.7.6
|
vibration: 1.7.6
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|
Loading…
Reference in a new issue