File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import 'package:flutter/foundation.dart' ;
12import 'package:flutter/material.dart' ;
23import 'package:lottie/lottie.dart' ;
34import 'package:pokedex/shared/ui/widgets/animated_pokeball.dart' ;
45import 'package:pokedex/theme/app_theme.dart' ;
56
67import '../../utils/app_constants.dart' ;
8+ import '../enums/device_screen_type.dart' ;
79
810class AppBarWidget extends StatefulWidget {
911 final String title;
@@ -61,13 +63,17 @@ class _AppBarWidgetState extends State<AppBarWidget> {
6163 width: 5 ,
6264 ),
6365 Text (widget.title, style: textTheme.headline1),
64- SizedBox (
65- width: 5 ,
66- ),
67- Image .network (
68- AppConstants .getRandomPokemonGif (),
69- height: 32 ,
70- )
66+ if (kIsWeb &&
67+ getDeviceScreenType (context) != DeviceScreenType .CELLPHONE )
68+ SizedBox (
69+ width: 5 ,
70+ ),
71+ if (kIsWeb &&
72+ getDeviceScreenType (context) != DeviceScreenType .CELLPHONE )
73+ Image .network (
74+ AppConstants .getRandomPokemonGif (),
75+ height: 32 ,
76+ )
7177 ],
7278 ),
7379 ),
You can’t perform that action at this time.
0 commit comments