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