Haptisches Feedback hinzufügen #216
@@ -10,6 +10,7 @@ import 'package:tallee/core/custom_theme.dart';
|
|||||||
import 'package:tallee/core/enums.dart';
|
import 'package:tallee/core/enums.dart';
|
||||||
import 'package:tallee/l10n/generated/app_localizations.dart';
|
import 'package:tallee/l10n/generated/app_localizations.dart';
|
||||||
import 'package:tallee/presentation/views/main_menu/settings_view/licenses_view.dart';
|
import 'package:tallee/presentation/views/main_menu/settings_view/licenses_view.dart';
|
||||||
|
import 'package:tallee/presentation/widgets/buttons/haptic_icon_button.dart';
|
||||||
import 'package:tallee/presentation/widgets/dialog/custom_alert_dialog.dart';
|
import 'package:tallee/presentation/widgets/dialog/custom_alert_dialog.dart';
|
||||||
import 'package:tallee/presentation/widgets/dialog/custom_dialog_action.dart';
|
import 'package:tallee/presentation/widgets/dialog/custom_dialog_action.dart';
|
||||||
import 'package:tallee/presentation/widgets/tiles/settings_list_tile.dart';
|
import 'package:tallee/presentation/widgets/tiles/settings_list_tile.dart';
|
||||||
@@ -198,20 +199,22 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
padding: const EdgeInsets.only(bottom: 12),
|
padding: const EdgeInsets.only(bottom: 12),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
spacing: 40,
|
spacing: 10,
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
HapticIconButton(
|
||||||
child: const Icon(Icons.language),
|
color: CustomTheme.textColor,
|
||||||
|
sneeex marked this conversation as resolved
Outdated
|
|||||||
onTap: () async => {
|
icon: const Icon(Icons.language),
|
||||||
|
onPressed: () async => {
|
||||||
await HapticFeedback.lightImpact(),
|
await HapticFeedback.lightImpact(),
|
||||||
launchUrl(
|
launchUrl(
|
||||||
Uri.parse('https://liquid-dev.de'),
|
Uri.parse('https://liquid-dev.de'),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
GestureDetector(
|
HapticIconButton(
|
||||||
child: const FaIcon(FontAwesomeIcons.github),
|
color: CustomTheme.textColor,
|
||||||
onTap: () async => {
|
icon: const FaIcon(FontAwesomeIcons.github),
|
||||||
|
onPressed: () async => {
|
||||||
await HapticFeedback.lightImpact(),
|
await HapticFeedback.lightImpact(),
|
||||||
launchUrl(
|
launchUrl(
|
||||||
Uri.parse(
|
Uri.parse(
|
||||||
@@ -220,13 +223,14 @@ class _SettingsViewState extends State<SettingsView> {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
GestureDetector(
|
HapticIconButton(
|
||||||
child: Icon(
|
color: CustomTheme.textColor,
|
||||||
|
icon: Icon(
|
||||||
Platform.isIOS
|
Platform.isIOS
|
||||||
? CupertinoIcons.mail_solid
|
? CupertinoIcons.mail_solid
|
||||||
: Icons.email,
|
: Icons.email,
|
||||||
),
|
),
|
||||||
onTap: () async => {
|
onPressed: () async => {
|
||||||
await HapticFeedback.lightImpact(),
|
await HapticFeedback.lightImpact(),
|
||||||
launchUrl(
|
launchUrl(
|
||||||
Uri.parse('mailto:hi@liquid-dev.de'),
|
Uri.parse('mailto:hi@liquid-dev.de'),
|
||||||
|
|||||||
Reference in New Issue
Block a user
Kann man diese drei Icon Buttons nicht direkt durch
HapticIconButtonersetzen?Kann man, aber der hat doch nen ganz anderes Design oder nicht?
Hab’s mir jetzt nicht genau angeschaut aber ist doch eigentlich auch nur n clickable Icon.