Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
7Eltantawy committed Dec 18, 2024
1 parent c0fc389 commit 86e68fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ShareImageCubit extends Cubit<ShareImageState> {

emit(
ShareImageLoadedState(
zika: zikr.copyWith(body: proccessedText),
zikr: zikr.copyWith(body: proccessedText),
zikrTitle: zikrTitle,
showLoadingIndicator: false,
settings: settings.copyWith(wordsCountPerSize: charsPerChunk),
Expand Down Expand Up @@ -158,7 +158,7 @@ class ShareImageCubit extends Cubit<ShareImageState> {
if (byteData == null) continue;

final fileName = _getHadithOutputFileName(
state.zika,
state.zikr,
i,
state.splittedMatn.length,
);
Expand All @@ -175,7 +175,7 @@ class ShareImageCubit extends Cubit<ShareImageState> {
if (byteData == null) return;

final fileName = _getHadithOutputFileName(
state.zika,
state.zikr,
state.activeIndex,
state.splittedMatn.length,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ sealed class ShareImageState extends Equatable {
final class ShareImageLoadingState extends ShareImageState {}

class ShareImageLoadedState extends ShareImageState {
final Zikr zika;
final Zikr zikr;
final ZikrTitle zikrTitle;
final bool showLoadingIndicator;
final List<TextRange> splittedMatn;
final ShareableImageCardSettings settings;
final int activeIndex;
const ShareImageLoadedState({
required this.zika,
required this.zikr,
required this.zikrTitle,
required this.showLoadingIndicator,
required this.splittedMatn,
Expand All @@ -29,23 +29,23 @@ class ShareImageLoadedState extends ShareImageState {
@override
List<Object> get props => [
showLoadingIndicator,
zika,
zikr,
zikrTitle,
settings,
splittedMatn,
activeIndex,
];

ShareImageLoadedState copyWith({
Zikr? zika,
Zikr? zikr,
ZikrTitle? zikrTitle,
bool? showLoadingIndicator,
List<TextRange>? splittedMatn,
ShareableImageCardSettings? settings,
int? activeIndex,
}) {
return ShareImageLoadedState(
zika: zika ?? this.zika,
zikr: zikr ?? this.zikr,
zikrTitle: zikrTitle ?? this.zikrTitle,
showLoadingIndicator: showLoadingIndicator ?? this.showLoadingIndicator,
splittedMatn: splittedMatn ?? this.splittedMatn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ShareAsImageScreen extends StatelessWidget {
child: RepaintBoundary(
key: context.read<ShareImageCubit>().imageKeys[index],
child: ShareableImageCard(
zikr: state.zika,
zikr: state.zikr,
zikrTitle: state.zikrTitle,
settings: state.settings,
matnRange: state.splittedMatn[index],
Expand Down

0 comments on commit 86e68fc

Please sign in to comment.