1+ import 'package:cached_network_image/cached_network_image.dart' ;
12/**
23 * Author: Damodar Lohani
34 * profile: https://github.com/lohanidamodar
67import 'package:flutter/material.dart' ;
78import 'package:flutter_swiper/flutter_swiper.dart' ;
89import 'package:flutter_ui_challenges/core/presentation/res/assets.dart' ;
10+ import 'package:flutter_ui_challenges/src/widgets/network_image.dart' ;
911import 'package:font_awesome_flutter/font_awesome_flutter.dart' ;
1012import 'package:flutter_ui_challenges/src/widgets/swiper_pagination.dart' ;
1113
@@ -25,16 +27,14 @@ class _IntroFourPageState extends State<IntroFourPage> {
2527 "Nulla facilisi. \n Fusce non tempus risus.\n Sed ultrices scelerisque sem,"
2628 ];
2729
28- final String bgImage = "assets/img/photographer.jpg" ;
29-
3030 @override
3131 Widget build (BuildContext context){
3232 return Scaffold (
3333 body: Stack (
3434 children: < Widget > [
3535 Container (
3636 alignment: Alignment .center,
37- child: Image . asset (bgImage , fit: BoxFit .contain,),
37+ child: PNetworkImage (photographer , fit: BoxFit .contain,),
3838 ),
3939 Column (
4040 children: < Widget > [
@@ -108,7 +108,7 @@ class _IntroFourPageState extends State<IntroFourPage> {
108108 decoration: BoxDecoration (
109109 borderRadius: BorderRadius .circular (30.0 ),
110110 image: DecorationImage (
111- image: AssetImage (icon),
111+ image: CachedNetworkImageProvider (icon),
112112 fit: BoxFit .cover,
113113 colorFilter: ColorFilter .mode (Colors .black38, BlendMode .multiply)
114114 ),
0 commit comments