diff --git a/images/1.jpg b/images/1.jpg index c73eacc..c8cb671 100644 Binary files a/images/1.jpg and b/images/1.jpg differ diff --git a/images/1.png b/images/1.png deleted file mode 100644 index ee248eb..0000000 Binary files a/images/1.png and /dev/null differ diff --git a/images/2.jpg b/images/2.jpg index 2bf6009..9e61ca3 100644 Binary files a/images/2.jpg and b/images/2.jpg differ diff --git a/images/2.png b/images/2.png deleted file mode 100644 index 70b996a..0000000 Binary files a/images/2.png and /dev/null differ diff --git a/images/3.jpg b/images/3.jpg index bf9fd4d..bd968fc 100644 Binary files a/images/3.jpg and b/images/3.jpg differ diff --git a/images/3.png b/images/3.png deleted file mode 100644 index 2f88df8..0000000 Binary files a/images/3.png and /dev/null differ diff --git a/images/4.jpg b/images/4.jpg index bf9fd4d..030ba31 100644 Binary files a/images/4.jpg and b/images/4.jpg differ diff --git a/images/4.png b/images/4.png deleted file mode 100644 index b46ad54..0000000 Binary files a/images/4.png and /dev/null differ diff --git a/images/5.jpg b/images/5.jpg index fa0351d..fb990ef 100644 Binary files a/images/5.jpg and b/images/5.jpg differ diff --git a/images/6.jpg b/images/6.jpg index c8cb671..8460898 100644 Binary files a/images/6.jpg and b/images/6.jpg differ diff --git a/images/7.jpg b/images/7.jpg new file mode 100644 index 0000000..18d65bf Binary files /dev/null and b/images/7.jpg differ diff --git a/images/8.jpg b/images/8.jpg new file mode 100644 index 0000000..fa69773 Binary files /dev/null and b/images/8.jpg differ diff --git a/lib/screen/with_media_promo.dart b/lib/screen/with_media_promo.dart index 542da24..c489138 100644 --- a/lib/screen/with_media_promo.dart +++ b/lib/screen/with_media_promo.dart @@ -274,6 +274,48 @@ class WithMediaPromo extends StatelessWidget { } }, ), + Image.network( + 'https://${Constant.baseSocket}/one-media/one-queue/slide-counter/7.jpg', + errorBuilder: (context, error, stackTrace) { + return Image.asset( + 'images/7.jpg', + fit: BoxFit.fitWidth, + ); + }, + headers: { + 'Access-Control-Allow-Origin': '*', + }, + loadingBuilder: (context, child, loadingProgress) { + if (loadingProgress == null) { + return child; + } else { + return Center( + child: CircularProgressIndicator(), + ); + } + }, + ), + Image.network( + 'https://${Constant.baseSocket}/one-media/one-queue/slide-counter/8.jpg', + errorBuilder: (context, error, stackTrace) { + return Image.asset( + 'images/8.jpg', + fit: BoxFit.fitWidth, + ); + }, + headers: { + 'Access-Control-Allow-Origin': '*', + }, + loadingBuilder: (context, child, loadingProgress) { + if (loadingProgress == null) { + return child; + } else { + return Center( + child: CircularProgressIndicator(), + ); + } + }, + ), ], ), ), diff --git a/pubspec.yaml b/pubspec.yaml index a74b44f..da896fe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -76,19 +76,17 @@ flutter: - images/background.png - images/clock.png - images/cs.png - - images/2.png - images/layanan_dokter.png - - images/1.png - images/pengambilan_darah.png - - images/3.png - images/rontgen_usg.png - - images/4.png - - images/5.jpg - images/1.jpg - images/2.jpg - images/3.jpg - images/4.jpg + - images/5.jpg - images/6.jpg + - images/7.jpg + - images/8.jpg # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see