This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from MXCzkEVM/bg_feat
Bg service status update
- Loading branch information
Showing
8 changed files
with
240 additions
and
138 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
44 changes: 44 additions & 0 deletions
44
lib/features/settings/subfeatures/notifications/widgets/bg_service_information_widget.dart
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,44 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_i18n/flutter_i18n.dart'; | ||
import 'package:mxc_ui/mxc_ui.dart'; | ||
|
||
class BGServiceInformation extends StatelessWidget { | ||
const BGServiceInformation({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Tooltip( | ||
decoration: BoxDecoration( | ||
borderRadius: const BorderRadius.all(Radius.circular(15)), | ||
color: ColorsTheme.of(context).mainRed, | ||
), | ||
showDuration: const Duration(seconds: 5), | ||
triggerMode: TooltipTriggerMode.tap, | ||
richMessage: TextSpan( | ||
style: FontTheme.of(context) | ||
.subtitle1() | ||
.copyWith(color: ColorsTheme.of(context).chipTextBlack), | ||
children: [ | ||
TextSpan( | ||
text: FlutterI18n.translate(context, 'experiencing_issues'), | ||
style: FontTheme.of(context) | ||
.subtitle2() | ||
.copyWith(color: ColorsTheme.of(context).chipTextBlack), | ||
), | ||
const TextSpan(text: ' '), | ||
TextSpan( | ||
text: | ||
FlutterI18n.translate(context, 'background_service_solution'), | ||
style: FontTheme.of(context) | ||
.subtitle1() | ||
.copyWith(color: ColorsTheme.of(context).chipTextBlack), | ||
), | ||
]), | ||
preferBelow: false, | ||
child: Icon( | ||
Icons.info_rounded, | ||
color: ColorsTheme.of(context).iconPrimary, | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.