Skip to content

Commit

Permalink
feat(ui): revamp sudoku home page ui
Browse files Browse the repository at this point in the history
  • Loading branch information
thisissandipp committed Jul 11, 2024
1 parent a9f5728 commit df93577
Show file tree
Hide file tree
Showing 15 changed files with 1,442 additions and 8 deletions.
13 changes: 11 additions & 2 deletions lib/app/view/app.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:sudoku/home/home.dart';
import 'package:sudoku/l10n/l10n.dart';
import 'package:sudoku/sudoku/sudoku.dart';
import 'package:sudoku/theme/theme.dart';

class App extends StatelessWidget {
Expand All @@ -11,9 +12,17 @@ class App extends StatelessWidget {
return MaterialApp(
theme: SudokuTheme.light,
darkTheme: SudokuTheme.dark,
themeMode: ThemeMode.light,
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
home: const SudokuPage(),
scrollBehavior: const MaterialScrollBehavior().copyWith(
dragDevices: {
PointerDeviceKind.mouse,
PointerDeviceKind.touch,
PointerDeviceKind.stylus,
},
),
home: const HomePage(),
);
}
}
20 changes: 20 additions & 0 deletions lib/assets/assets.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/// Defines the assets for the Sudoku App UI.
abstract class Assets {
/// Daily Challenge icon.
static const dailyChallengeIcon = 'assets/icons/challenge.png';

/// Unfinished Puzzle icon.
static const unfinishedPuzzleIcon = 'assets/icons/unfinished.png';

/// Easy Puzzle icon.
static const easyPuzzleIcon = 'assets/icons/easy.png';

/// Medium Puzzle icon.
static const mediumPuzzleIcon = 'assets/icons/medium.png';

/// Difficult Puzzle icon.
static const difficultPuzzleIcon = 'assets/icons/difficult.png';

/// Expert Puzzle icon.
static const expertPuzzleIcon = 'assets/icons/expert.png';
}
16 changes: 16 additions & 0 deletions lib/colors/colors.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import 'dart:ui';

/// Defines the colors used in the Sudoku App UI.
abstract class SudokuColors {
/// dark Pink
static const lightPink = Color(0xFFFF80B5);

/// Light Purple
static const lightPurple = Color(0xFF9089FC);

/// Dark Pink
static const darkPink = Color(0xFFC7649F);

/// Dark Purple
static const darkPurple = Color(0xFF6C63C7);
}
1 change: 1 addition & 0 deletions lib/home/home.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export 'view/home_page.dart';
Loading

0 comments on commit df93577

Please sign in to comment.