Skip to content

Commit

Permalink
unexport circle flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cedvdb committed Feb 5, 2024
1 parent f2dd5c5 commit 6f9501a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [9.0.1]
- unexport circle flags

## [9.0.0]

- Big Internal refactor in the hope of making contribution easier
Expand Down
2 changes: 1 addition & 1 deletion lib/src/phone_form_field.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle;

import 'package:circle_flags/circle_flags.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_country_selector/flutter_country_selector.dart';
import 'package:phone_form_field/phone_form_field.dart';
import 'package:phone_form_field/src/validation/allowed_characters.dart';
import 'package:phone_numbers_parser/phone_numbers_parser.dart';
Expand Down
6 changes: 1 addition & 5 deletions lib/src/phone_form_field_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ class PhoneFormFieldState extends FormFieldState<PhoneNumber> {
);
controller.addListener(_onControllerValueChanged);
focusNode = widget.focusNode ?? FocusNode();
_preloadFlagsInMemory();
}

void _preloadFlagsInMemory() {
CircleFlag.preload(IsoCode.values.map((isoCode) => isoCode.name).toList());
CountrySelector.preloadFlags();
}

@override
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: phone_form_field
description: Flutter phone input integrated with flutter internationalization
version: 9.0.0
version: 9.0.1
homepage: https://github.com/cedvdb/phone_form_field

environment:
Expand Down

0 comments on commit 6f9501a

Please sign in to comment.