@@ -4,10 +4,12 @@ import 'package:flutter/material.dart';
44import 'package:intl/intl.dart' ;
55import 'package:marvel/l10n/l10n.dart' ;
66import 'package:marvel/webview/webview_page.dart' ;
7- import 'package:provider/provider.dart' ;
87
98class ComicDetailPage extends StatefulWidget {
10- const ComicDetailPage ({super .key, required this .comic});
9+ const ComicDetailPage ({
10+ required this .comic,
11+ super .key,
12+ });
1113
1214 static PageRoute page (Comic comic) => MaterialPageRoute <void >(
1315 builder: (context) => ComicDetailPage (
@@ -139,7 +141,7 @@ class _ComicSliverApp extends StatelessWidget {
139141 visible: ! isShrink,
140142 child: DecoratedBox (
141143 decoration: BoxDecoration (
142- color: blue.withAlpha (200 ),
144+ color: AppColors . blue.withAlpha (200 ),
143145 backgroundBlendMode: BlendMode .darken,
144146 ),
145147 child: Text (comic.title),
@@ -148,7 +150,6 @@ class _ComicSliverApp extends StatelessWidget {
148150 titlePadding: const EdgeInsets .only (left: 40 , bottom: 15 , right: 20 ),
149151 background: MarvelNetworkImage (
150152 imageUrl: comic.thumbnail.comicDetailPreview,
151- // cacheManager: context.read<CacheManager>(),
152153 ),
153154 ),
154155 );
@@ -176,12 +177,12 @@ class _DescriptionView extends StatelessWidget {
176177 const SizedBox (height: 20 ),
177178 Text (
178179 l10n.description,
179- style: theme.textTheme.headline1 ,
180+ style: theme.textTheme.displayLarge ,
180181 ),
181182 const SizedBox (height: 10 ),
182183 Text (
183184 comic.description,
184- style: theme.textTheme.bodyText1 ,
185+ style: theme.textTheme.bodyLarge ,
185186 ),
186187 ],
187188 );
@@ -211,7 +212,7 @@ class _LinksView extends StatelessWidget {
211212 const SizedBox (height: 20 ),
212213 Text (
213214 l10n.links,
214- style: theme.textTheme.headline2 ,
215+ style: theme.textTheme.displayMedium ,
215216 ),
216217 const SizedBox (height: 10 ),
217218 ],
@@ -238,10 +239,10 @@ class _LinksView extends StatelessWidget {
238239@visibleForTesting
239240class TextLink extends StatelessWidget {
240241 const TextLink ({
241- super .key,
242242 required this .url,
243243 required this .type,
244244 required this .onTap,
245+ super .key,
245246 });
246247
247248 final String url;
@@ -258,14 +259,14 @@ class TextLink extends StatelessWidget {
258259 children: [
259260 const Icon (
260261 Icons .link,
261- color: red,
262+ color: AppColors . red,
262263 ),
263264 const SizedBox (width: 10 ),
264265 Text (
265266 type,
266- style: theme.textTheme.bodyText1 ! .copyWith (
267+ style: theme.textTheme.bodyLarge ! .copyWith (
267268 fontSize: 24 ,
268- color: red,
269+ color: AppColors . red,
269270 ),
270271 ),
271272 ],
@@ -297,7 +298,7 @@ class _PricesView extends StatelessWidget {
297298 const SizedBox (height: 20 ),
298299 Text (
299300 l10n.prices,
300- style: theme.textTheme.headline2 ,
301+ style: theme.textTheme.displayMedium ,
301302 ),
302303 const SizedBox (height: 10 ),
303304 ],
@@ -307,7 +308,7 @@ class _PricesView extends StatelessWidget {
307308 (view as Column ).children.add (
308309 Text (
309310 element.toCurrency (context),
310- style: theme.textTheme.bodyText1 ,
311+ style: theme.textTheme.bodyLarge ,
311312 ),
312313 );
313314 }
@@ -339,7 +340,7 @@ class _ImagesView extends StatelessWidget {
339340 const SizedBox (height: 20 ),
340341 Text (
341342 l10n.images,
342- style: theme.textTheme.headline2 ,
343+ style: theme.textTheme.displayMedium ,
343344 ),
344345 const SizedBox (height: 10 ),
345346 SizedBox (
@@ -383,12 +384,12 @@ class _DatesView extends StatelessWidget {
383384 children: [
384385 Text (
385386 l10n.last_modified,
386- style: theme.textTheme.subtitle1 ,
387+ style: theme.textTheme.titleMedium ,
387388 ),
388389 const SizedBox (width: 10 ),
389390 Text (
390391 comic.modified,
391- style: theme.textTheme.subtitle1 ,
392+ style: theme.textTheme.titleMedium ,
392393 ),
393394 ],
394395 );
0 commit comments