Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobaraujo7 committed Jan 16, 2024
1 parent d43b3e4 commit 2b44df5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/app/(public)/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class _HomePageState extends State<HomePage> {

List<Game> get games => filteredGamesState;
DateTime? _lastOpenGameAt;
var hasRailsExtanded = false;
var hasRailsExtended = false;
Timer? _timer;
ColorScheme? newColorScheme;
Brightness? newBrightness;
Expand Down Expand Up @@ -161,7 +161,7 @@ class _HomePageState extends State<HomePage> {
void switchRail() {
sounds.openRail();
setState(() {
hasRailsExtanded = !hasRailsExtanded;
hasRailsExtended = !hasRailsExtended;
});
}

Expand Down Expand Up @@ -255,7 +255,7 @@ class _HomePageState extends State<HomePage> {
final config = gameConfigState.value;

const itemWidth = 140.0;
final railsMinWidth = hasRailsExtanded ? 256.0 : 72.0;
final railsMinWidth = hasRailsExtended ? 256.0 : 72.0;

final gridWidth = width - railsMinWidth;

Expand Down Expand Up @@ -286,7 +286,7 @@ class _HomePageState extends State<HomePage> {
backgroundColor: Colors.transparent,
leading: IconButton(
icon: AnimatedMenuLeading(
isCloseMenu: hasRailsExtanded,
isCloseMenu: hasRailsExtended,
icon: AnimatedIcons.menu_close,
),
onPressed: switchRail,
Expand All @@ -307,7 +307,7 @@ class _HomePageState extends State<HomePage> {
child: NavigationRail(
backgroundColor: Colors.transparent,
indicatorColor: colorScheme.surfaceVariant,
extended: hasRailsExtanded,
extended: hasRailsExtended,
onDestinationSelected: (value) {
handlerDestinationSelect(value);
},
Expand Down

0 comments on commit 2b44df5

Please sign in to comment.