Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions lib/common/theme/text_style/app_text_styles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,211 +4,211 @@ import 'package:skelter/gen/fonts.gen.dart';
class AppTextStyles {
static TextStyle h1 = const TextStyle(
fontSize: 29,
fontWeight: FontWeight.w900,
fontWeight: .w900,
fontFamily: FontFamily.inter,
height: 1.5,
letterSpacing: -0.28,
);

static TextStyle h2 = const TextStyle(
fontSize: 24,
fontWeight: FontWeight.w900,
fontWeight: .w900,
fontFamily: FontFamily.inter,
height: 1.5,
letterSpacing: -0.24,
);

static TextStyle h2Bold = const TextStyle(
fontSize: 24,
fontWeight: FontWeight.w700,
fontWeight: .w700,
fontFamily: FontFamily.inter,
height: 1.5,
letterSpacing: -0.24,
);

static TextStyle h3 = const TextStyle(
fontSize: 18,
fontWeight: FontWeight.w900,
fontWeight: .w900,
fontFamily: FontFamily.inter,
height: 1.5,
letterSpacing: -0.24,
);

static TextStyle h3Medium = const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w500,
fontWeight: .w500,
fontFamily: FontFamily.inter,
height: 1.5,
letterSpacing: -0.24,
);

static TextStyle h5Bold = const TextStyle(
fontSize: 24,
fontWeight: FontWeight.w700,
fontWeight: .w700,
fontFamily: FontFamily.inter,
height: 1.33,
letterSpacing: -0.24,
);

static TextStyle h6Medium = const TextStyle(
fontSize: 18,
fontWeight: FontWeight.w500,
fontWeight: .w500,
fontFamily: FontFamily.inter,
height: 1.5,
letterSpacing: -1,
);
static TextStyle h6Bold = const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w700,
fontWeight: .w700,
fontFamily: FontFamily.inter,
height: 1.5,
letterSpacing: -1,
);

static TextStyle h4SemiBold = const TextStyle(
fontSize: 28,
fontWeight: FontWeight.w600,
fontWeight: .w600,
fontFamily: FontFamily.inter,
height: 36 / 28,
letterSpacing: -0.28,
);

static TextStyle h6SemiBold = const TextStyle(
fontSize: 20,
fontWeight: FontWeight.w600,
fontWeight: .w600,
fontFamily: FontFamily.inter,
height: 1.5,
letterSpacing: -1,
);

static TextStyle p3Regular = const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w400,
fontWeight: .w400,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p1Medium = const TextStyle(
fontSize: 18,
fontWeight: FontWeight.w500,
fontWeight: .w500,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p1SemiBold = const TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
fontWeight: .w600,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p2Medium = const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
fontWeight: .w500,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p2Regular = const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w400,
fontWeight: .w400,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p3Medium = const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
fontWeight: .w500,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p3SemiBold = const TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
fontWeight: .w600,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p4Medium = const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w500,
fontWeight: .w500,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p4Regular = const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w400,
fontWeight: .w400,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p1Bold = const TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
fontWeight: .bold,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p2Bold = const TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
fontWeight: .bold,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p2SemiBold = const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
fontWeight: .w600,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p3Bold = const TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
fontWeight: .bold,
fontFamily: FontFamily.inter,
height: 1.5,
);
static TextStyle p4SemiBold = const TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
fontWeight: .w600,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle p4Bold = const TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
fontWeight: .bold,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle c1SemiBold = const TextStyle(
fontSize: 10,
fontWeight: FontWeight.w600,
fontWeight: .w600,
fontFamily: FontFamily.inter,
height: 1.4,
);

static TextStyle c2Regular = const TextStyle(
fontSize: 10,
fontWeight: FontWeight.w400,
fontWeight: .w400,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle c2Medium = const TextStyle(
fontSize: 10,
fontWeight: FontWeight.w500,
fontWeight: .w500,
fontFamily: FontFamily.inter,
height: 1.5,
);

static TextStyle c2SemiBold = const TextStyle(
fontSize: 10,
fontWeight: FontWeight.w600,
fontWeight: .w600,
fontFamily: FontFamily.inter,
height: 1.5,
);
Expand Down
12 changes: 6 additions & 6 deletions lib/core/services/app_tour_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class AppTourService {
return Container(
padding: const EdgeInsets.all(20),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: .min,
crossAxisAlignment: .start,
children: [
Text(
context.localization.tour_search_title,
Expand All @@ -96,7 +96,7 @@ class AppTourService {
),
const SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.end,
mainAxisAlignment: .end,
children: [
AppButton(
onPressed: () => controller.skip(),
Expand Down Expand Up @@ -132,8 +132,8 @@ class AppTourService {
return Container(
padding: const EdgeInsets.all(20),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: .min,
crossAxisAlignment: .start,
children: [
Text(
context.localization.tour_nav_title,
Expand All @@ -150,7 +150,7 @@ class AppTourService {
),
const SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.end,
mainAxisAlignment: .end,
children: [
AppButton(
onPressed: () => controller.next(),
Expand Down
4 changes: 2 additions & 2 deletions lib/gen/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/i18n/app_localizations_en.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// ignore: unused_import
import 'package:intl/intl.dart' as intl;

import 'app_localizations.dart';

// ignore_for_file: type=lint
Expand Down
5 changes: 1 addition & 4 deletions lib/initialize_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ Future<void> initializeApp({
final remoteConfigService = RemoteConfigService();
await remoteConfigService.initialize();

await SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
await SystemChrome.setPreferredOrientations([.portraitUp, .portraitDown]);

await dotenv.load();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class _AccountDeleteSuccessScreenState
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisAlignment: .center,
children: [
const Spacer(),
Transform.scale(
Expand All @@ -72,11 +72,11 @@ class _AccountDeleteSuccessScreenState
Text(
context.localization.account_deleted,
style: AppTextStyles.h4SemiBold,
textAlign: TextAlign.center,
textAlign: .center,
),
const Spacer(),
RichText(
textAlign: TextAlign.center,
textAlign: .center,
text: TextSpan(
style: AppTextStyles.p2Regular,
children: [
Expand Down
12 changes: 6 additions & 6 deletions lib/presentation/ai_chat/widgets/ai_chat_bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class _AiChatSheetContent extends StatelessWidget {
),
child: GestureDetector(
onTap: () => FocusManager.instance.primaryFocus?.unfocus(),
behavior: HitTestBehavior.translucent,
behavior: .translucent,
child: Column(
children: [
_buildDragHandle(context),
Expand Down Expand Up @@ -119,7 +119,7 @@ class _AiChatSheetContent extends StatelessWidget {
height: 36,
decoration: BoxDecoration(
color: context.currentTheme.bgBrandLight50,
shape: BoxShape.circle,
shape: .circle,
),
child: Icon(
TablerIcons.robot,
Expand All @@ -130,7 +130,7 @@ class _AiChatSheetContent extends StatelessWidget {
const SizedBox(width: 12),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: .start,
children: [
Text(
context.localization.ai_assistant,
Expand Down Expand Up @@ -185,7 +185,7 @@ class _AiChatSheetContent extends StatelessWidget {
return SizedBox(
height: 44,
child: ListView.separated(
scrollDirection: Axis.horizontal,
scrollDirection: .horizontal,
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 4),
itemCount: suggestions.length,
separatorBuilder: (_, _) => const SizedBox(width: 8),
Expand Down Expand Up @@ -294,7 +294,7 @@ class _AiChatMessageListState extends State<_AiChatMessageList> {
child: Padding(
padding: const EdgeInsets.all(32),
child: Column(
mainAxisSize: MainAxisSize.min,
mainAxisSize: .min,
children: [
Icon(
TablerIcons.message_chatbot,
Expand All @@ -311,7 +311,7 @@ class _AiChatMessageListState extends State<_AiChatMessageList> {
const SizedBox(height: 4),
Text(
context.localization.ai_chat_description,
textAlign: TextAlign.center,
textAlign: .center,
style: AppTextStyles.p3Regular.copyWith(
color: context.currentTheme.textNeutralPrimary,
),
Expand Down
Loading
Loading