-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: similar station button, auto data safe mode, move handlers
- Loading branch information
1 parent
b09a955
commit 49c7ef2
Showing
16 changed files
with
262 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_tabler_icons/flutter_tabler_icons.dart'; | ||
import 'package:yaru/yaru.dart'; | ||
import '../../common/view/theme.dart'; | ||
import '../../extensions/build_context_x.dart'; | ||
import '../../l10n/l10n.dart'; | ||
|
||
class DiscordConnectContent extends StatelessWidget { | ||
const DiscordConnectContent({super.key, required this.connected}); | ||
|
||
final bool connected; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final l10n = context.l10n; | ||
return Row( | ||
mainAxisSize: MainAxisSize.min, | ||
children: space( | ||
widthGap: 10, | ||
children: [ | ||
Text( | ||
'${connected ? l10n.connectedTo : l10n.disconnectedFrom}' | ||
' ${l10n.exposeToDiscordTitle}', | ||
), | ||
Icon( | ||
TablerIcons.brand_discord_filled, | ||
color: context.theme.snackBarTheme.backgroundColor != null | ||
? contrastColor(context.theme.snackBarTheme.backgroundColor!) | ||
: null, | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.