Skip to content

Commit

Permalink
added static image to remove cors issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bimsina committed Sep 4, 2021
1 parent a40fe54 commit 79cf817
Show file tree
Hide file tree
Showing 65 changed files with 1,579 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-3.0.3/","dependencies":[]},{"name":"path_provider","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]},{"name":"shared_preferences","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/","dependencies":[]},{"name":"url_launcher","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/","dependencies":[]}],"android":[{"name":"connectivity","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-3.0.3/","dependencies":[]},{"name":"path_provider","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]},{"name":"shared_preferences","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/","dependencies":[]},{"name":"url_launcher","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/","dependencies":[]}],"macos":[{"name":"connectivity_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_macos-0.2.0/","dependencies":[]},{"name":"path_provider_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/","dependencies":[]},{"name":"shared_preferences_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.0/","dependencies":[]},{"name":"url_launcher_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.0/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.0/","dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.0/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.1/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.0/","dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.0/","dependencies":[]}],"web":[{"name":"connectivity_for_web","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_for_web-0.4.0/","dependencies":[]},{"name":"shared_preferences_web","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.0/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.0/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity","dependencies":["connectivity_macos","connectivity_for_web"]},{"name":"connectivity_for_web","dependencies":[]},{"name":"connectivity_macos","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"url_launcher","dependencies":["url_launcher_linux","url_launcher_macos","url_launcher_windows","url_launcher_web"]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2021-04-28 22:39:44.172026","version":"2.0.5"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-3.0.3/","dependencies":[]},{"name":"path_provider","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]},{"name":"shared_preferences","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/","dependencies":[]},{"name":"url_launcher","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/","dependencies":[]}],"android":[{"name":"connectivity","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity-3.0.3/","dependencies":[]},{"name":"path_provider","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]},{"name":"shared_preferences","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-2.0.5/","dependencies":[]},{"name":"url_launcher","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/","dependencies":[]}],"macos":[{"name":"connectivity_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_macos-0.2.0/","dependencies":[]},{"name":"path_provider_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/","dependencies":[]},{"name":"shared_preferences_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-2.0.0/","dependencies":[]},{"name":"url_launcher_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.0/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/","dependencies":[]},{"name":"shared_preferences_linux","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_linux-2.0.0/","dependencies":["path_provider_linux"]},{"name":"url_launcher_linux","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.0/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.1/","dependencies":[]},{"name":"shared_preferences_windows","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_windows-2.0.0/","dependencies":["path_provider_windows"]},{"name":"url_launcher_windows","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.0/","dependencies":[]}],"web":[{"name":"connectivity_for_web","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_for_web-0.4.0/","dependencies":[]},{"name":"shared_preferences_web","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-2.0.0/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.0/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity","dependencies":["connectivity_macos","connectivity_for_web"]},{"name":"connectivity_for_web","dependencies":[]},{"name":"connectivity_macos","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"url_launcher","dependencies":["url_launcher_linux","url_launcher_macos","url_launcher_windows","url_launcher_web"]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2021-09-04 23:18:51.297488","version":"2.2.3"}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is an app that gives you information about all the things that make Nepal b
## Features :

<ul>
<li>Fetch data from a <a href ="http://tourism-nepal.herokuapp.com/">GraphQl Server</a>.</li>
<li>Fetch data from a <a href ="https://tourism-nepal.herokuapp.com/">GraphQl Server</a>.</li>
<li>Data collected via web-scraping with Python.</li>
<li>Navigate to a specific location via Google Maps</li>
<li>Dynamic Theming using Provider</li>
Expand Down
11 changes: 11 additions & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.bimsina.visit_nepal

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
12 changes: 12 additions & 0 deletions android/app/src/main/res/drawable-v21/launch_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />

<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
18 changes: 18 additions & 0 deletions android/app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
33 changes: 33 additions & 0 deletions ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3
9 changes: 5 additions & 4 deletions ios/Flutter/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/bimsina/src/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/bimsina/Desktop/Development/Cloned/toUpdate/visit_nepal"
export "FLUTTER_TARGET=/Users/bimsina/Desktop/Development/Cloned/toUpdate/visit_nepal/lib/main.dart"
export "FLUTTER_APPLICATION_PATH=/Users/bimsina/Desktop/Development/Cloned/visit_nepal"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=/Users/bimsina/Desktop/Development/Cloned/visit_nepal/lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_DEFINES=flutter.inspector.structuredErrors%3Dtrue"
export "DART_DEFINES=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ=="
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=/Users/bimsina/Desktop/Development/Cloned/toUpdate/visit_nepal/.dart_tool/package_config.json"
export "PACKAGE_CONFIG=/Users/bimsina/Desktop/Development/Cloned/visit_nepal/.dart_tool/package_config.json"
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d

COCOAPODS: 1.10.1
COCOAPODS: 1.10.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
8 changes: 8 additions & 0 deletions ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
13 changes: 13 additions & 0 deletions ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
1 change: 1 addition & 0 deletions ios/Runner/Runner-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#import "GeneratedPluginRegistrant.h"
19 changes: 19 additions & 0 deletions lib/generated_plugin_registrant.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Generated file. Do not edit.
//

// ignore_for_file: lines_longer_than_80_chars

import 'package:connectivity_for_web/connectivity_for_web.dart';
import 'package:shared_preferences_web/shared_preferences_web.dart';
import 'package:url_launcher_web/url_launcher_web.dart';

import 'package:flutter_web_plugins/flutter_web_plugins.dart';

// ignore: public_member_api_docs
void registerPlugins(Registrar registrar) {
ConnectivityPlugin.registerWith(registrar);
SharedPreferencesPlugin.registerWith(registrar);
UrlLauncherPlugin.registerWith(registrar);
registrar.registerMessageHandler();
}
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'screens/home.dart';

void main() async {
await initHiveForFlutter();
final HttpLink httpLink = HttpLink("http://tourism-nepal.herokuapp.com/");
final HttpLink httpLink = HttpLink("https://tourism-nepal.herokuapp.com/");
ValueNotifier<GraphQLClient> graphQlClient = ValueNotifier(
GraphQLClient(
link: httpLink,
Expand Down
3 changes: 2 additions & 1 deletion lib/screens/festival_detail.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:visit_nepal/modals/festivaldata.dart';
import 'package:visit_nepal/utils/custom_image.dart';
import '../widgets/custom_carousel.dart';

class FestivalDetail extends StatefulWidget {
Expand Down Expand Up @@ -50,7 +51,7 @@ class _FestivalDetailState extends State<FestivalDetail> {
bottomRight: Radius.circular(16.0),
),
child: FadeInImage(
image: NetworkImage(widget.festival.image),
image: customImage(widget.festival.image),
fit: BoxFit.cover,
placeholder: AssetImage('assets/images/loading.gif'),
),
Expand Down
3 changes: 2 additions & 1 deletion lib/screens/hotel_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:visit_nepal/modals/hoteldata.dart';
import 'package:visit_nepal/utils/constants.dart';
import 'package:visit_nepal/utils/custom_image.dart';
import '../modals/openweather.dart';
import '../widgets/custom_carousel.dart';
import 'package:http/http.dart' as http;
Expand Down Expand Up @@ -87,7 +88,7 @@ class _HotelDetailState extends State<HotelDetail> {
bottomRight: Radius.circular(16.0),
),
child: FadeInImage(
image: NetworkImage(widget.hotel.img[0]),
image: customImage(widget.hotel.img[0]),
fit: BoxFit.cover,
placeholder: AssetImage('assets/images/loading.gif'),
),
Expand Down
3 changes: 2 additions & 1 deletion lib/screens/place_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:convert';
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:visit_nepal/utils/constants.dart';
import 'package:visit_nepal/utils/custom_image.dart';
import '../modals/attractiondata.dart';
import '../modals/openweather.dart';
import '../widgets/custom_carousel.dart';
Expand Down Expand Up @@ -77,7 +78,7 @@ class _PlaceDetailState extends State<PlaceDetail> {
bottomRight: Radius.circular(16.0),
),
child: FadeInImage(
image: NetworkImage(widget.place.image),
image: customImage(widget.place.image),
fit: BoxFit.cover,
placeholder: AssetImage('assets/images/loading.gif'),
),
Expand Down
3 changes: 2 additions & 1 deletion lib/screens/restaurantDetail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:visit_nepal/modals/restaurantData.dart';
import 'package:visit_nepal/utils/constants.dart';
import 'package:visit_nepal/utils/custom_image.dart';
import '../modals/openweather.dart';
import '../widgets/custom_carousel.dart';
import 'package:http/http.dart' as http;
Expand Down Expand Up @@ -75,7 +76,7 @@ class _RestaurantDetailState extends State<RestaurantDetail> {
bottomRight: Radius.circular(16.0),
),
child: FadeInImage(
image: NetworkImage(widget.place.image),
image: customImage(widget.place.image),
fit: BoxFit.cover,
placeholder: AssetImage('assets/images/loading.gif'),
),
Expand Down
6 changes: 6 additions & 0 deletions lib/utils/custom_image.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'package:flutter/material.dart';

NetworkImage customImage(String url) {
return NetworkImage(
"https://images.pexels.com/photos/2104882/pexels-photo-2104882.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260");
}
3 changes: 2 additions & 1 deletion lib/widgets/custom_carousel.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:carousel_slider/carousel_slider.dart';
import 'package:visit_nepal/utils/custom_image.dart';

class CustomCarousel extends StatefulWidget {
final List<String> imageUrls;
Expand Down Expand Up @@ -34,7 +35,7 @@ class _CustomCarouselState extends State<CustomCarousel> {
builder: (BuildContext context) {
return Container(
child: FadeInImage(
image: NetworkImage(i),
image: customImage(i),
fit: BoxFit.cover,
placeholder: AssetImage('assets/images/loading.gif'),
),
Expand Down

0 comments on commit 79cf817

Please sign in to comment.