[Gallery] Disallow GoogleFonts http loading (#307)

* Update pubspec and pubspec.lock

Upgrade packages to latest allowable version
Specify ^ for packages missing it

* Disallow GoogleFonts http loading
pull/311/head
Pierre-Louis 5 years ago committed by GitHub
parent 6a65b01f5d
commit eceff0ae62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,6 +8,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart' show timeDilation; import 'package:flutter/scheduler.dart' show timeDilation;
import 'package:flutter_localized_locales/flutter_localized_locales.dart'; import 'package:flutter_localized_locales/flutter_localized_locales.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:gallery/constants.dart'; import 'package:gallery/constants.dart';
import 'package:gallery/data/gallery_options.dart'; import 'package:gallery/data/gallery_options.dart';
import 'package:gallery/l10n/gallery_localizations.dart'; import 'package:gallery/l10n/gallery_localizations.dart';
@ -29,6 +30,7 @@ void setOverrideForDesktop() {
void main() { void main() {
setOverrideForDesktop(); setOverrideForDesktop();
GoogleFonts.config.allowHttp = false;
runApp(GalleryApp()); runApp(GalleryApp());
} }

@ -105,7 +105,7 @@ packages:
name: flare_dart name: flare_dart
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.2" version: "2.3.3"
flare_flutter: flare_flutter:
dependency: "direct main" dependency: "direct main"
description: description:
@ -136,7 +136,7 @@ packages:
name: flutter_localized_locales name: flutter_localized_locales
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.2" version: "1.0.3"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -160,7 +160,7 @@ packages:
name: google_fonts name: google_fonts
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.5" version: "0.3.7"
grinder: grinder:
dependency: "direct dev" dependency: "direct dev"
description: description:
@ -202,7 +202,7 @@ packages:
name: intl name: intl
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.16.0" version: "0.16.1"
intl_translation: intl_translation:
dependency: "direct main" dependency: "direct main"
description: description:
@ -272,7 +272,7 @@ packages:
name: path_provider name: path_provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.5.1" version: "1.6.0"
pedantic: pedantic:
dependency: transitive dependency: transitive
description: description:
@ -335,14 +335,14 @@ packages:
name: shared_preferences name: shared_preferences
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.5.6" version: "0.5.6+1"
shared_preferences_macos: shared_preferences_macos:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_macos name: shared_preferences_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.0.1+3" version: "0.0.1+4"
shared_preferences_platform_interface: shared_preferences_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -356,7 +356,7 @@ packages:
name: shared_preferences_web name: shared_preferences_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.2+2" version: "0.1.2+3"
shrine_images: shrine_images:
dependency: "direct main" dependency: "direct main"
description: description:

@ -15,7 +15,7 @@ dependencies:
intl_translation: intl_translation:
flutter_localized_locales: flutter_localized_locales:
cupertino_icons: ^0.1.2 cupertino_icons: ^0.1.2
rally_assets: 1.0.0 rally_assets: ^1.0.0
meta: meta:
scoped_model: scoped_model:
shrine_images: ^1.1.2 shrine_images: ^1.1.2
@ -23,7 +23,7 @@ dependencies:
url_launcher: ^5.1.6 url_launcher: ^5.1.6
shared_preferences: ^0.5.4+8 shared_preferences: ^0.5.4+8
collection: ^1.14.0 collection: ^1.14.0
flutter_gallery_assets: 0.1.9+2 flutter_gallery_assets: ^0.1.9+2
package_info: ^0.4.0+13 package_info: ^0.4.0+13
google_fonts: ^0.3.5 google_fonts: ^0.3.5
@ -31,7 +31,7 @@ dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
grinder: ^0.8.0 grinder: ^0.8.0
string_scanner: 1.0.5 string_scanner: ^1.0.5
flutter: flutter:
assets: assets:

Loading…
Cancel
Save