TF-2057 Add color/size to styles
(cherry picked from commit 68b621471197105b2a846a2827afdaa23ec03edc)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CupertinoLoadingWidgetStyles {
|
||||
static const Color progressColor = AppColor.colorLoading;
|
||||
static const double size = 24;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class HyperLinkWidgetStyles {
|
||||
static const Color textColor = AppColor.primaryColor;
|
||||
static const double textSize = 16;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:tmail_ui_user/features/base/styles/cupertino_loading_widget_styles.dart';
|
||||
|
||||
class CupertinoLoadingWidget extends StatelessWidget {
|
||||
const CupertinoLoadingWidget({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const Center(
|
||||
child: SizedBox(
|
||||
width: CupertinoLoadingWidgetStyles.size,
|
||||
height: CupertinoLoadingWidgetStyles.size,
|
||||
child: CupertinoActivityIndicator(color: CupertinoLoadingWidgetStyles.progressColor)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:tmail_ui_user/features/base/styles/hyper_link_widget_styles.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
class HyperLinkWidget extends StatelessWidget {
|
||||
@@ -15,8 +15,8 @@ class HyperLinkWidget extends StatelessWidget {
|
||||
text: TextSpan(
|
||||
text: urlString,
|
||||
style: const TextStyle(
|
||||
color: AppColor.primaryColor,
|
||||
fontSize: 16,
|
||||
color: HyperLinkWidgetStyles.textColor,
|
||||
fontSize: HyperLinkWidgetStyles.textSize,
|
||||
decoration: TextDecoration.underline
|
||||
),
|
||||
recognizer: TapGestureRecognizer()..onTap = () async {
|
||||
|
||||
Reference in New Issue
Block a user