mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-19 13:13:44 +02:00
fix: correctly show template add title when there are no templates selected yet
This commit is contained in:
parent
5d05c65ae8
commit
db6d343fb4
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class AvailabilityTemplateSelection extends StatelessWidget {
|
||||||
var translations = options.translations;
|
var translations = options.translations;
|
||||||
|
|
||||||
var titleText = translations.availabilityAddTemplateTitle;
|
var titleText = translations.availabilityAddTemplateTitle;
|
||||||
if (selectedTemplates.isEmpty) {
|
if (selectedTemplates.isNotEmpty) {
|
||||||
if (selectedTemplates.length > 1) {
|
if (selectedTemplates.length > 1) {
|
||||||
titleText = translations.availabilityUsedTemplates;
|
titleText = translations.availabilityUsedTemplates;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue