Browse Source

add splash_screen.dart

add design of level list screen
master
mohsen zamani 2 years ago
parent
commit
88315884a5
  1. 15
      lib/screens/level_list/screen/level_list_screen.dart

15
lib/screens/level_list/screen/level_list_screen.dart

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

Loading…
Cancel
Save