Revert "Merge pull request #77 from simon-twonary/shows-the-flag-only-when-closed"
This reverts commitf4b741ef96, reversing changes made tof10402f2ab.
This commit is contained in:
@@ -42,7 +42,6 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
/// shows the flag
|
/// shows the flag
|
||||||
final bool showFlag;
|
final bool showFlag;
|
||||||
|
|
||||||
/// shows the flag only when closed
|
|
||||||
final bool showFlagMain;
|
final bool showFlagMain;
|
||||||
|
|
||||||
final bool showFlagDialog;
|
final bool showFlagDialog;
|
||||||
@@ -72,7 +71,7 @@ class CountryCodePicker extends StatefulWidget {
|
|||||||
this.alignLeft = false,
|
this.alignLeft = false,
|
||||||
this.showFlag = true,
|
this.showFlag = true,
|
||||||
this.showFlagDialog,
|
this.showFlagDialog,
|
||||||
this.showFlagMain = false,
|
this.showFlagMain,
|
||||||
this.builder,
|
this.builder,
|
||||||
this.flagWidth = 32.0,
|
this.flagWidth = 32.0,
|
||||||
this.enabled = true,
|
this.enabled = true,
|
||||||
@@ -148,7 +147,6 @@ class CountryCodePickerState extends State<CountryCodePicker> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (widget.showFlagMain == false)
|
|
||||||
Flexible(
|
Flexible(
|
||||||
fit: widget.alignLeft ? FlexFit.tight : FlexFit.loose,
|
fit: widget.alignLeft ? FlexFit.tight : FlexFit.loose,
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user