toonflix main.dart
import 'package:flutter/material.dart';import 'package:toonflix/widgets/button.dart';import 'package:toonflix/widgets/currency_card.dart';const taxAmount = 15;const priceAmount = 30;var finalPrice = taxAmount + priceAmount;void main() { runApp(MyApp());}class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( backg..
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 31.
Flutter Word Game core/theme/app_theme.dart
import 'package:flutter/material.dart';import 'package:wordgame/core/theme/app_colors.dart';import 'package:wordgame/core/theme/app_fonts.dart';class AppTheme{ static ThemeData getTheme(){ return ThemeData( colorScheme: const ColorScheme( brightness: Brightness.dark, primary: AppColors.primary, onPrimary: AppColors.onSurface, secondary: AppColors.seco..
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 19.
Flutter Word Game core/theme/app_fonts.dart
class AppFonts{ static const String fontFamily = 'Lexend';}
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 19.
Flutter Word Game core/router/app_router.dart
import 'package:go_router/go_router.dart';import 'package:wordgame/features/game/presentation/page/game_page.dart';import 'package:wordgame/features/home/presentation/home_page.dart';class AppRouter{ static var router = GoRouter(initialLocation: HomePage.route, routes: [ GoRoute(path: HomePage.route,builder: (context,state) { return HomePage(); }), GoRoute(path: '/game',builder: (..
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 19.
Flutter WordGame core/get_it.dart
import 'package:get_it/get_it.dart';import 'package:wordgame/features/game/presentation/bloc/game_bloc.dart';var getIt = GetIt.instance;void setup(){ registerBloc();}void registerBloc(){ getIt.registerCachedFactory(() => GameBloc());}
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 19.
Flutter Word Game features/home/widgets/slider_selection_widget.dart
import 'package:flutter/material.dart';class SliderSelectionWidget extends StatelessWidget { final String title; final double value; final double minvalue; final double maxvalue; final int divisions; final ValueChanged onChanged; const SliderSelectionWidget( {super.key, required this.title, required this.value, required this.minvalue, required this.divisio..
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 19.
Flutter Word Game features/game/presentation/bloc/game_state.dart
enum GameStatus{ initial, loading, inProgress, win, loss, error,}class GameState{ final GameStatus status; final String? errorMessage; final List? attempts; final String? currentAttempt; final String? word; final int? attemptsCount; GameState._( {required this.status, this.errorMessage, this.attempts, this.currentAttempt, this.word, this.attemptsCount})..
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 19.
Flutter Word Game features/game/presentation/bloc/game_event.dart
abstract class GameEvent{}class StartGameEvent extends GameEvent{ final int attemptsCount; final int wordLength; StartGameEvent({required this.attemptsCount, required this.wordLength});}class EnterAttemptEvent extends GameEvent{}class EnterKeyEvent extends GameEvent{}class DeleteKeyEvent extends GameEvent{}
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 19.
Flutter Word Game main code
import 'package:flutter/material.dart';import 'package:wordgame/core/get_it/get_it.dart';import 'package:wordgame/core/router/app_router.dart';import 'package:wordgame/core/theme/app_theme.dart';void main() { WidgetsFlutterBinding.ensureInitialized(); setup(); runApp(MaterialApp.router( routerConfig: AppRouter.router, theme: AppTheme.getTheme(), ));}
- 1인 게임 개발자 나령윤기도[Unity, Flutter]
- · 2025. 10. 19.