Skip to content

Commit

Permalink
changed occupationWidgetsList data type to FloorOccupationWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
peucastro committed Jan 8, 2025
1 parent 40b0e6d commit f0c815a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/uni_ui/lib/cards/library_occupation_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ class LibraryOccupationCard extends StatelessWidget {
super.key,
required this.capacity,
required this.occupation,
required this.occupationCardsList,
required this.occupationWidgetsList,
});

final int capacity;
final int occupation;
final List<Widget> occupationCardsList;
final List<FloorOccupationWidget> occupationWidgetsList;

@override
Widget build(BuildContext context) {
Expand All @@ -84,7 +84,7 @@ class LibraryOccupationCard extends StatelessWidget {
const SizedBox(width: 20),
Expanded(
child: Column(
children: occupationCardsList,
children: occupationWidgetsList,
),
),
],
Expand Down
4 changes: 1 addition & 3 deletions packages/uni_ui/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,6 @@ void main() {
}

class MyApp extends StatelessWidget {
late final Map<String, dynamic> occupationMap;

MyApp() {}

@override
Expand All @@ -517,7 +515,7 @@ class MyApp extends StatelessWidget {
LibraryOccupationCard(
capacity: 300,
occupation: 200,
occupationCardsList: [
occupationWidgetsList: [
FloorOccupationWidget(
capacity: 50,
occupation: 10,
Expand Down

0 comments on commit f0c815a

Please sign in to comment.