Browse Source
Merge pull request 'feature/intro' (#11) from feature/intro into develop
Merge pull request 'feature/intro' (#11) from feature/intro into develop
Reviewed-on: https://git.nwhco.ir/amirreza.chegini/hade_hoda_flutter/pulls/11pull/13/head
39 changed files with 224 additions and 1441 deletions
-
BINassets/fonts/Marhey-Bold.ttf
-
BINassets/fonts/Marhey-Light.ttf
-
BINassets/fonts/Marhey-Medium.ttf
-
BINassets/fonts/Marhey-Regular.ttf
-
BINassets/fonts/Marhey-SemiBold.ttf
-
1181assets/json/levels.json
-
70lib/common_ui/resources/my_text_style.dart
-
6lib/core/constants/my_api.dart
-
2lib/core/constants/my_constants.dart
-
2lib/core/error_handler/error_handler.dart
-
2lib/core/routers/my_routes.dart
-
2lib/core/utils/local_storage.dart
-
6lib/core/utils/storage_path.dart
-
18lib/core/widgets/about_us_dialog/about_us_dialog.dart
-
3lib/core/widgets/answer_box/answer_box.dart
-
8lib/core/widgets/answer_box/styles/picture_box.dart
-
8lib/core/widgets/answer_box/styles/text_box.dart
-
6lib/core/widgets/showcase/question_showcase.dart
-
90lib/features/intro/data/datasource/intro_datasource.dart
-
20lib/features/intro/data/repository_impl/intro_repository_impl.dart
-
3lib/features/intro/domain/repository/intro_repository.dart
-
16lib/features/intro/domain/usecases/extract_data_usecase.dart
-
6lib/features/intro/domain/usecases/get_files_usecase.dart
-
49lib/features/intro/presentation/bloc/intro_bloc.dart
-
4lib/features/intro/presentation/bloc/intro_event.dart
-
8lib/features/intro/presentation/bloc/intro_state.dart
-
23lib/features/intro/presentation/ui/intro_page.dart
-
4lib/features/intro/presentation/ui/widgets/intro_loading_widget.dart
-
1lib/features/level/presentation/ui/level_page.dart
-
10lib/features/level/presentation/ui/widgets/hint_level_widget.dart
-
11lib/features/level/presentation/ui/widgets/level_widget.dart
-
1lib/features/question/presentation/bloc/question_bloc.dart
-
21lib/features/question/presentation/ui/question_page.dart
-
6lib/features/question/presentation/ui/widgets/left_blob.dart
-
6lib/features/question/presentation/ui/widgets/right_blob.dart
-
6lib/init_bindings.dart
-
2lib/main.dart
-
8pubspec.lock
-
24pubspec.yaml
1181
assets/json/levels.json
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,28 +1,70 @@ |
|||||
import 'package:flutter/material.dart'; |
import 'package:flutter/material.dart'; |
||||
|
|
||||
class MyTextStyle { |
|
||||
static const MyTextStyle _i = MyTextStyle._internal(); |
|
||||
const MyTextStyle._internal(); |
|
||||
factory MyTextStyle() => _i; |
|
||||
|
class DinoKids { |
||||
|
static const DinoKids _i = DinoKids._internal(); |
||||
|
const DinoKids._internal(); |
||||
|
factory DinoKids() => _i; |
||||
|
|
||||
static const String fontFamily = 'dinokids'; |
static const String fontFamily = 'dinokids'; |
||||
|
|
||||
static const TextStyle normal26 = TextStyle( |
|
||||
|
/// Regular |
||||
|
static const TextStyle regular17 = TextStyle( |
||||
|
fontFamily: fontFamily, |
||||
|
fontSize: 17, |
||||
|
fontWeight: FontWeight.w400, |
||||
|
); |
||||
|
static const TextStyle regular26 = TextStyle( |
||||
fontFamily: fontFamily, |
fontFamily: fontFamily, |
||||
fontSize: 26, |
fontSize: 26, |
||||
fontWeight: FontWeight.w400, |
fontWeight: FontWeight.w400, |
||||
shadows: [ |
|
||||
Shadow( |
|
||||
color: Color(0XFF5B5B5B), |
|
||||
blurRadius: 2.86, |
|
||||
offset: Offset(0, 2), |
|
||||
), |
|
||||
] |
|
||||
|
); |
||||
|
} |
||||
|
|
||||
|
class Marhey { |
||||
|
static const Marhey _i = Marhey._internal(); |
||||
|
const Marhey._internal(); |
||||
|
factory Marhey() => _i; |
||||
|
|
||||
|
static const String fontFamily = 'marhey'; |
||||
|
|
||||
|
/// Medium |
||||
|
static const TextStyle medium12 = TextStyle( |
||||
|
fontFamily: fontFamily, |
||||
|
fontSize: 12, |
||||
|
fontWeight: FontWeight.w500, |
||||
|
); |
||||
|
static const TextStyle medium16 = TextStyle( |
||||
|
fontFamily: fontFamily, |
||||
|
fontSize: 16, |
||||
|
fontWeight: FontWeight.w500, |
||||
); |
); |
||||
|
|
||||
static const TextStyle normal17 = TextStyle( |
|
||||
|
/// Semi Bold |
||||
|
static const TextStyle semiBold17 = TextStyle( |
||||
fontFamily: fontFamily, |
fontFamily: fontFamily, |
||||
fontSize: 17, |
fontSize: 17, |
||||
fontWeight: FontWeight.w400, |
|
||||
|
fontWeight: FontWeight.w600, |
||||
|
); |
||||
|
static const TextStyle semiBold18 = TextStyle( |
||||
|
fontFamily: fontFamily, |
||||
|
fontSize: 18, |
||||
|
fontWeight: FontWeight.w600, |
||||
|
); |
||||
|
static const TextStyle semiBold22 = TextStyle( |
||||
|
fontFamily: fontFamily, |
||||
|
fontSize: 22, |
||||
|
fontWeight: FontWeight.w600, |
||||
|
); |
||||
|
|
||||
|
/// Bold |
||||
|
static const TextStyle bold12 = TextStyle( |
||||
|
fontFamily: fontFamily, |
||||
|
fontSize: 12, |
||||
|
fontWeight: FontWeight.w700, |
||||
|
); |
||||
|
static const TextStyle bold14 = TextStyle( |
||||
|
fontFamily: fontFamily, |
||||
|
fontSize: 14, |
||||
|
fontWeight: FontWeight.w700, |
||||
); |
); |
||||
} |
} |
@ -1,16 +0,0 @@ |
|||||
import 'package:hadi_hoda_flutter/core/error_handler/my_exception.dart'; |
|
||||
import 'package:hadi_hoda_flutter/core/params/no_params.dart'; |
|
||||
import 'package:hadi_hoda_flutter/core/usecase/usecase.dart'; |
|
||||
import 'package:hadi_hoda_flutter/core/utils/data_state.dart'; |
|
||||
import 'package:hadi_hoda_flutter/features/intro/domain/repository/intro_repository.dart'; |
|
||||
|
|
||||
class ExtractDataUseCase implements UseCase<NoParams, NoParams> { |
|
||||
final IIntroRepository repository; |
|
||||
|
|
||||
const ExtractDataUseCase(this.repository); |
|
||||
|
|
||||
@override |
|
||||
Future<DataState<NoParams, MyException>> call(NoParams params) { |
|
||||
return repository.extractData(); |
|
||||
} |
|
||||
} |
|
@ -1,6 +1,4 @@ |
|||||
sealed class IntroEvent { |
sealed class IntroEvent { |
||||
const IntroEvent(); |
const IntroEvent(); |
||||
} |
} |
||||
|
|
||||
class SaveLevelsEvent extends IntroEvent {} |
|
||||
class ExtractDataEvent extends IntroEvent {} |
|
||||
|
class GetFilesEvent extends IntroEvent {} |
@ -1,15 +1,15 @@ |
|||||
import 'package:hadi_hoda_flutter/core/status/base_status.dart'; |
import 'package:hadi_hoda_flutter/core/status/base_status.dart'; |
||||
|
|
||||
class IntroState { |
class IntroState { |
||||
final BaseStatus getIntroStatus; |
|
||||
|
final BaseStatus getFilesStatus; |
||||
|
|
||||
const IntroState({this.getIntroStatus = const BaseInit()}); |
|
||||
|
const IntroState({this.getFilesStatus = const BaseInit()}); |
||||
|
|
||||
IntroState copyWith({ |
IntroState copyWith({ |
||||
BaseStatus? getIntroStatus, |
|
||||
|
BaseStatus? getFilesStatus, |
||||
}) { |
}) { |
||||
return IntroState( |
return IntroState( |
||||
getIntroStatus: getIntroStatus ?? this.getIntroStatus, |
|
||||
|
getFilesStatus: getFilesStatus ?? this.getFilesStatus, |
||||
); |
); |
||||
} |
} |
||||
} |
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue