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
52 changes: 44 additions & 8 deletions lib/core/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,30 @@ class AppTheme {
margin: EdgeInsets.zero,
),
textTheme: const TextTheme(
headlineLarge: TextStyle(fontSize: 32, fontWeight: FontWeight.bold, letterSpacing: -0.5, color: Color(0xFF1A1A1A)),
headlineMedium: TextStyle(fontSize: 24, fontWeight: FontWeight.bold, letterSpacing: -0.5, color: Color(0xFF1A1A1A)),
titleLarge: TextStyle(fontSize: 18, fontWeight: FontWeight.w600, color: Color(0xFF1A1A1A)),
headlineLarge: TextStyle(
fontSize: 32,
fontWeight: FontWeight.bold,
letterSpacing: -0.5,
color: Color(0xFF1A1A1A),
),
headlineMedium: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
letterSpacing: -0.5,
color: Color(0xFF1A1A1A),
),
titleLarge: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Color(0xFF1A1A1A),
),
bodyLarge: TextStyle(fontSize: 16, color: Color(0xFF2C2C2C)),
bodyMedium: TextStyle(fontSize: 14, color: Color(0xFF4A4A4A)),
labelLarge: TextStyle(fontSize: 14, fontWeight: FontWeight.bold, color: Color(0xFF1A1A1A)),
labelLarge: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Color(0xFF1A1A1A),
),
),
appBarTheme: const AppBarTheme(
backgroundColor: Colors.white,
Expand Down Expand Up @@ -68,12 +86,30 @@ class AppTheme {
margin: EdgeInsets.zero,
),
textTheme: const TextTheme(
headlineLarge: TextStyle(fontSize: 32, fontWeight: FontWeight.bold, letterSpacing: -0.5, color: Colors.white),
headlineMedium: TextStyle(fontSize: 24, fontWeight: FontWeight.bold, letterSpacing: -0.5, color: Colors.white),
titleLarge: TextStyle(fontSize: 18, fontWeight: FontWeight.w600, color: Colors.white),
headlineLarge: TextStyle(
fontSize: 32,
fontWeight: FontWeight.bold,
letterSpacing: -0.5,
color: Colors.white,
),
headlineMedium: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
letterSpacing: -0.5,
color: Colors.white,
),
titleLarge: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Colors.white,
),
bodyLarge: TextStyle(fontSize: 16, color: Color(0xFFE0E0E0)),
bodyMedium: TextStyle(fontSize: 14, color: Color(0xFFA0A0A0)),
labelLarge: TextStyle(fontSize: 14, fontWeight: FontWeight.bold, color: Colors.white),
labelLarge: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
appBarTheme: const AppBarTheme(
backgroundColor: Color(0xFF121212),
Expand Down
56 changes: 33 additions & 23 deletions lib/features/about/about_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,18 @@ class AboutScreen extends ConsumerWidget {

final String versionText = packageInfoAsync.when(
data: (info) => info.version,
loading: () => '1.1.0',
error: (err, stack) => '1.1.0',
loading: () => '1.0.2',
error: (err, stack) => '1.0.2',
);

final String buildText = packageInfoAsync.when(
data: (info) => info.buildNumber,
loading: () => '2',
error: (err, stack) => '2',
loading: () => '3',
error: (err, stack) => '3',
);

return Scaffold(
appBar: AppBar(
title: const Text('About PlayMate'),
),
appBar: AppBar(title: const Text('About PlayMate')),
body: SafeArea(
child: ResponsiveLayout(
mobile: SingleChildScrollView(
Expand All @@ -48,7 +46,9 @@ class AboutScreen extends ConsumerWidget {
Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
color: theme.colorScheme.primary.withValues(alpha: 0.1),
color: theme.colorScheme.primary.withValues(
alpha: 0.1,
),
borderRadius: BorderRadius.circular(12),
),
child: Icon(
Expand All @@ -64,17 +64,19 @@ class AboutScreen extends ConsumerWidget {
children: [
Text(
'PlayMate',
style: theme.textTheme.headlineLarge?.copyWith(
fontWeight: FontWeight.w900,
letterSpacing: -0.5,
),
style: theme.textTheme.headlineLarge
?.copyWith(
fontWeight: FontWeight.w900,
letterSpacing: -0.5,
),
),
Text(
'Everything you need for offline games.',
style: theme.textTheme.titleMedium?.copyWith(
color: theme.colorScheme.secondary,
fontWeight: FontWeight.w500,
),
style: theme.textTheme.titleMedium
?.copyWith(
color: theme.colorScheme.secondary,
fontWeight: FontWeight.w500,
),
),
],
),
Expand Down Expand Up @@ -151,7 +153,8 @@ class AboutScreen extends ConsumerWidget {
title: const Text('Official Website'),
subtitle: const Text('sundramdotdev.xyz'),
trailing: const Icon(Icons.open_in_new, size: 18),
onTap: () => ExternalLinks.openUrl(ExternalLinks.websiteUrl),
onTap: () =>
ExternalLinks.openUrl(ExternalLinks.websiteUrl),
),
const Divider(height: 1),
ListTile(
Expand All @@ -160,7 +163,8 @@ class AboutScreen extends ConsumerWidget {
title: const Text('GitHub'),
subtitle: const Text('github.com/sundramdotdev'),
trailing: const Icon(Icons.open_in_new, size: 18),
onTap: () => ExternalLinks.openUrl(ExternalLinks.githubUrl),
onTap: () =>
ExternalLinks.openUrl(ExternalLinks.githubUrl),
),
const Divider(height: 1),
ListTile(
Expand All @@ -169,16 +173,21 @@ class AboutScreen extends ConsumerWidget {
title: const Text('LinkedIn'),
subtitle: const Text('linkedin.com/in/sundramdotdev'),
trailing: const Icon(Icons.open_in_new, size: 18),
onTap: () => ExternalLinks.openUrl(ExternalLinks.linkedinUrl),
onTap: () =>
ExternalLinks.openUrl(ExternalLinks.linkedinUrl),
),
const Divider(height: 1),
ListTile(
contentPadding: EdgeInsets.zero,
leading: const Icon(Icons.folder_zip_outlined),
title: const Text('PlayMate Repository'),
subtitle: const Text('github.com/sundramdotdev/playmate'),
subtitle: const Text(
'github.com/sundramdotdev/playmate',
),
trailing: const Icon(Icons.open_in_new, size: 18),
onTap: () => ExternalLinks.openUrl(ExternalLinks.repositoryUrl),
onTap: () => ExternalLinks.openUrl(
ExternalLinks.repositoryUrl,
),
),
const Divider(height: 1),
ListTile(
Expand All @@ -187,7 +196,8 @@ class AboutScreen extends ConsumerWidget {
title: const Text('Instagram'),
subtitle: const Text('@devsundram_'),
trailing: const Icon(Icons.open_in_new, size: 18),
onTap: () => ExternalLinks.openUrl(ExternalLinks.instagramUrl),
onTap: () =>
ExternalLinks.openUrl(ExternalLinks.instagramUrl),
),
],
),
Expand All @@ -201,7 +211,7 @@ class AboutScreen extends ConsumerWidget {
children: [
ListTile(
leading: const Icon(Icons.new_releases_outlined),
title: const Text('What\'s New in 1.1.0'),
title: const Text('What\'s New in 1.0.2'),
trailing: const Icon(Icons.chevron_right),
onTap: () => context.push('/changelog'),
),
Expand Down
8 changes: 3 additions & 5 deletions lib/features/about/changelog_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ChangelogScreen extends StatelessWidget {

final releases = [
{
'version': 'v1.1.0',
'version': 'v1.0.2',
'date': 'October 2026',
'isLatest': true,
'highlights': [
Expand All @@ -34,7 +34,7 @@ class ChangelogScreen extends StatelessWidget {
'3D Coin Toss with multi-coin flipping and streak tracking.',
'Smart Team Generator with random and skill-balanced modes.',
'Universal Score Tracker with round-by-round history and undo.',

'Gully & Club Cricket Scorer with legal delivery counting and run rate.',
'Custom Spin Wheel with angular velocity physics and elimination mode.',
'Tournament Generator for 4 to 32 team elimination brackets.',
Expand Down Expand Up @@ -76,9 +76,7 @@ class ChangelogScreen extends StatelessWidget {
];

return Scaffold(
appBar: AppBar(
title: const Text('What\'s New'),
),
appBar: AppBar(title: const Text('What\'s New')),
body: SafeArea(
child: ResponsiveLayout(
mobile: ListView.builder(
Expand Down
14 changes: 7 additions & 7 deletions lib/features/about/link_launcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ class ExternalLinks {
static const String githubUrl = 'https://github.com/sundramdotdev';
static const String linkedinUrl = 'https://linkedin.com/in/sundramdotdev';
static const String websiteUrl = 'https://www.sundramdotdev.xyz';
static const String portfolioFallbackUrl = 'https://sundramdotdev-portfolio.vercel.app';
static const String instagramUrl = 'https://www.instagram.com/devsundram_?stkn=dXBva2IwMzZxbHY1';
static const String portfolioFallbackUrl =
'https://sundramdotdev-portfolio.vercel.app';
static const String instagramUrl =
'https://www.instagram.com/devsundram_?stkn=dXBva2IwMzZxbHY1';

// Project Repositories & Resources
static const String repositoryUrl = 'https://github.com/sundramdotdev/playmate';
static const String repositoryUrl =
'https://github.com/sundramdotdev/playmate';
static const String supportEmail = 'support@playmateapp.com';

/// Launches a verified external URL in the default system browser or native application.
Expand All @@ -26,10 +29,7 @@ class ExternalLinks {
);
if (launched) return true;

return await launchUrl(
uri,
mode: LaunchMode.platformDefault,
);
return await launchUrl(uri, mode: LaunchMode.platformDefault);
} catch (e) {
debugPrint('Failed to open external link: $urlString ($e)');
try {
Expand Down
13 changes: 3 additions & 10 deletions lib/features/about/privacy_policy_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,15 @@ class PrivacyPolicyScreen extends StatelessWidget {
final theme = Theme.of(context);

return Scaffold(
appBar: AppBar(
title: const Text('Privacy Policy'),
),
appBar: AppBar(title: const Text('Privacy Policy')),
body: SafeArea(
child: ResponsiveLayout(
mobile: SingleChildScrollView(
padding: const EdgeInsets.all(AppSpacing.m),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Privacy Policy',
style: theme.textTheme.headlineMedium,
),
Text('Privacy Policy', style: theme.textTheme.headlineMedium),
const SizedBox(height: AppSpacing.xs),
Text(
'Last Updated: October 2026',
Expand Down Expand Up @@ -113,9 +108,7 @@ class PrivacyPolicyScreen extends StatelessWidget {
Linkify(
onOpen: (link) => openExternalUrl(link.url),
text: body,
style: theme.textTheme.bodyLarge?.copyWith(
height: 1.5,
),
style: theme.textTheme.bodyLarge?.copyWith(height: 1.5),
linkStyle: TextStyle(
color: theme.colorScheme.primary,
fontWeight: FontWeight.bold,
Expand Down
8 changes: 2 additions & 6 deletions lib/features/about/terms_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ class TermsScreen extends StatelessWidget {
final theme = Theme.of(context);

return Scaffold(
appBar: AppBar(
title: const Text('Terms & Conditions'),
),
appBar: AppBar(title: const Text('Terms & Conditions')),
body: SafeArea(
child: ResponsiveLayout(
mobile: SingleChildScrollView(
Expand Down Expand Up @@ -98,9 +96,7 @@ class TermsScreen extends StatelessWidget {
Linkify(
onOpen: (link) => openExternalUrl(link.url),
text: body,
style: theme.textTheme.bodyLarge?.copyWith(
height: 1.5,
),
style: theme.textTheme.bodyLarge?.copyWith(height: 1.5),
linkStyle: TextStyle(
color: theme.colorScheme.primary,
fontWeight: FontWeight.bold,
Expand Down
Loading
Loading