mirror of
https://github.com/flutter/samples.git
synced 2026-04-02 09:43:05 +00:00
[Gallery] Use new package flutter_localized_locales (#256)
* Update to latest flutter_localized_countries * Update pubspec.lock * Use flutter_localized_locales package
This commit is contained in:
@@ -7,7 +7,7 @@ import 'dart:io';
|
|||||||
import 'package:flutter/foundation.dart';
|
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_countries/flutter_localized_countries.dart';
|
import 'package:flutter_localized_locales/flutter_localized_locales.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';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import 'dart:collection';
|
|||||||
|
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_localized_countries/flutter_localized_countries.dart';
|
import 'package:flutter_localized_locales/flutter_localized_locales.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';
|
||||||
@@ -58,7 +58,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
LocaleNamesLocalizationsDelegate().getLocaleNativeNames().then(
|
LocaleNamesLocalizationsDelegate().allNativeNames().then(
|
||||||
(data) => setState(
|
(data) => setState(
|
||||||
() {
|
() {
|
||||||
_localeNativeNames = data;
|
_localeNativeNames = data;
|
||||||
|
|||||||
@@ -137,15 +137,13 @@ packages:
|
|||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
flutter_localized_countries:
|
flutter_localized_locales:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
name: flutter_localized_locales
|
||||||
ref: "76bfbf9654c3842d735181383f7ab86c312a2483"
|
url: "https://pub.dartlang.org"
|
||||||
resolved-ref: "76bfbf9654c3842d735181383f7ab86c312a2483"
|
source: hosted
|
||||||
url: "git://github.com/guidezpl/flutter-localized-countries.git"
|
version: "1.0.2"
|
||||||
source: git
|
|
||||||
version: "1.1.0"
|
|
||||||
flutter_test:
|
flutter_test:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description: flutter
|
description: flutter
|
||||||
@@ -190,7 +188,7 @@ packages:
|
|||||||
name: intl
|
name: intl
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.16.1"
|
version: "0.16.0"
|
||||||
intl_translation:
|
intl_translation:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
intl:
|
intl:
|
||||||
intl_translation:
|
intl_translation:
|
||||||
|
flutter_localized_locales:
|
||||||
duration:
|
duration:
|
||||||
cupertino_icons: ^0.1.2
|
cupertino_icons: ^0.1.2
|
||||||
rally_assets: 1.0.0
|
rally_assets: 1.0.0
|
||||||
@@ -21,10 +22,6 @@ dependencies:
|
|||||||
shrine_images: ^1.1.2
|
shrine_images: ^1.1.2
|
||||||
flare_flutter: ^1.6.5
|
flare_flutter: ^1.6.5
|
||||||
url_launcher: ^5.1.6
|
url_launcher: ^5.1.6
|
||||||
flutter_localized_countries:
|
|
||||||
git:
|
|
||||||
url: git://github.com/guidezpl/flutter-localized-countries.git
|
|
||||||
ref: 76bfbf9654c3842d735181383f7ab86c312a2483
|
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user