|
|
@ -67,12 +67,21 @@ class _LevelListScreenState extends State<LevelListScreen> { |
|
|
|
child: ListView.builder( |
|
|
|
itemBuilder: (context, index) { |
|
|
|
if (index == 0 || index == 1) { |
|
|
|
return LevelWidget(level: _levelList[index]); |
|
|
|
return GestureDetector( |
|
|
|
onTap: () => _startLevel(_levelList[index]), |
|
|
|
child: LevelWidget(level: _levelList[index]), |
|
|
|
); |
|
|
|
} |
|
|
|
if (index == 2) { |
|
|
|
return LockLevelWidget(level: _levelList[index]); |
|
|
|
return GestureDetector( |
|
|
|
child: LockLevelWidget(level: _levelList[index]), |
|
|
|
onTap: () => _startLevel(_levelList[index]), |
|
|
|
); |
|
|
|
} |
|
|
|
return PayedLevelWidget(level: _levelList[index]); |
|
|
|
return GestureDetector( |
|
|
|
child: PayedLevelWidget(level: _levelList[index]), |
|
|
|
onTap: () => _startLevel(_levelList[index]), |
|
|
|
); |
|
|
|
}, |
|
|
|
itemCount: _levelList.length, |
|
|
|
), |
|
|
|