@@ -15,6 +15,8 @@ class LaunchSectionWidget extends StatelessWidget {
1515 Widget build (BuildContext context) {
1616 final l10n = S .of (context);
1717
18+ final scheme = Theme .of (context).colorScheme;
19+
1820 return Card (
1921 elevation: 6 ,
2022 shape: RoundedRectangleBorder (
@@ -26,8 +28,8 @@ class LaunchSectionWidget extends StatelessWidget {
2628 borderRadius: BorderRadius .circular (16 ),
2729 gradient: LinearGradient (
2830 colors: [
29- Colors .orange .withValues (alpha: 0.2 ),
30- Colors .red .withValues (alpha: 0.1 ),
31+ scheme.primary .withValues (alpha: 0.2 ),
32+ scheme.secondary .withValues (alpha: 0.1 ),
3133 ],
3234 ),
3335 ),
@@ -38,7 +40,7 @@ class LaunchSectionWidget extends StatelessWidget {
3840 children: [
3941 Icon (
4042 Icons .rocket,
41- color: Colors .orange[ 400 ] ,
43+ color: scheme.primary ,
4244 ),
4345 const SizedBox (width: 8 ),
4446 Text (
@@ -58,17 +60,17 @@ class LaunchSectionWidget extends StatelessWidget {
5860 children: [
5961 Text (
6062 l10n.launchMass,
61- style:
62- const TextStyle (color: Colors .white60, fontSize: 12 ),
63+ style: Theme .of (context).textTheme.bodySmall? .copyWith (
64+ color: scheme.onSurfaceVariant,
65+ ),
6366 ),
6467 const SizedBox (height: 4 ),
6568 Text (
6669 massKg,
67- style: TextStyle (
68- color: Colors .orange[400 ],
69- fontSize: 18 ,
70- fontWeight: FontWeight .bold,
71- ),
70+ style: Theme .of (context).textTheme.bodyLarge? .copyWith (
71+ color: scheme.primary,
72+ fontWeight: FontWeight .bold,
73+ ),
7274 ),
7375 ],
7476 ),
@@ -77,17 +79,17 @@ class LaunchSectionWidget extends StatelessWidget {
7779 children: [
7880 Text (
7981 l10n.launchVehicle,
80- style:
81- const TextStyle (color: Colors .white60, fontSize: 12 ),
82+ style: Theme .of (context).textTheme.bodySmall? .copyWith (
83+ color: scheme.onSurfaceVariant,
84+ ),
8285 ),
8386 const SizedBox (height: 4 ),
8487 Text (
8588 vehicle,
86- style: TextStyle (
87- color: Colors .orange[400 ],
88- fontSize: 18 ,
89- fontWeight: FontWeight .bold,
90- ),
89+ style: Theme .of (context).textTheme.bodyLarge? .copyWith (
90+ color: scheme.primary,
91+ fontWeight: FontWeight .bold,
92+ ),
9193 ),
9294 ],
9395 ),
0 commit comments