Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 744ee0b

Browse files
authored
Merge pull request #43 from flutter-news-app-full-source-code/fix-previous-sync-errors
Fix previous sync errors
2 parents 7ce0aad + e405996 commit 744ee0b

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

‎lib/src/services/auth_service.dart‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,15 @@ class AuthService {
529529
textScaleFactor: AppTextScaleFactor.medium,
530530
fontWeight: AppFontWeight.regular,
531531
),
532-
language: languagesFixturesData.firstWhere((l) => l.code == 'en'),
532+
language: Language(
533+
id: '6633b7ac1892f06e6914d0b3',
534+
code: 'en',
535+
name: 'English',
536+
nativeName: 'English',
537+
createdAt: DateTime.now(),
538+
updatedAt: DateTime.now(),
539+
status: ContentStatus.active,
540+
),
533541
feedPreferences: const FeedDisplayPreferences(
534542
headlineDensity: HeadlineDensity.standard,
535543
headlineImageStyle: HeadlineImageStyle.smallThumbnail,

‎lib/src/services/database_seeding_service.dart‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,15 @@ class DatabaseSeedingService {
258258
textScaleFactor: AppTextScaleFactor.medium,
259259
fontWeight: AppFontWeight.regular,
260260
),
261-
language: languagesFixturesData.firstWhere((l) => l.code == 'en'),
261+
language: Language(
262+
id: '6633b7ac1892f06e6914d0b3',
263+
code: 'en',
264+
name: 'English',
265+
nativeName: 'English',
266+
createdAt: DateTime.now(),
267+
updatedAt: DateTime.now(),
268+
status: ContentStatus.active,
269+
),
262270
feedPreferences: const FeedDisplayPreferences(
263271
headlineDensity: HeadlineDensity.standard,
264272
headlineImageStyle: HeadlineImageStyle.smallThumbnail,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /