Skip to content

Commit

Permalink
fixes review
Browse files Browse the repository at this point in the history
  • Loading branch information
D3bi7 committed Sep 24, 2024
1 parent 1577572 commit ff346e8
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 19 deletions.
File renamed without changes
File renamed without changes
6 changes: 4 additions & 2 deletions lib/i18n/strings.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/// To regenerate, run: `dart run slang`
///
/// Locales: 1
/// Strings: 27
/// Strings: 28
///
/// Built on 2024-09-23 at 20:18 UTC
/// Built on 2024-09-24 at 17:35 UTC
// coverage:ignore-file
// ignore_for_file: type=lint
Expand Down Expand Up @@ -204,6 +204,7 @@ class _StringsScanEn {
String get wait => 'Proszę czekać, trwa Ładowanie...';
String get lastScans => 'Ostatnie skany:';
String get error => 'Wystąpił błąd';
String get closeError => 'Zamknij.';
}

/// Flat map(s) containing all translations.
Expand Down Expand Up @@ -239,6 +240,7 @@ extension on Translations {
case 'scan.wait': return 'Proszę czekać, trwa Ładowanie...';
case 'scan.lastScans': return 'Ostatnie skany:';
case 'scan.error': return 'Wystąpił błąd';
case 'scan.closeError': return 'Zamknij.';
default: return null;
}
}
Expand Down
6 changes: 3 additions & 3 deletions lib/i18n/strings.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"pkt":" pkt",
"wait": "Proszę czekać, trwa Ładowanie...",
"lastScans": "Ostatnie skany:",
"error": "Wystąpił błąd"


"error": "Wystąpił błąd",
"closeError": "Zamknij."
}

}
6 changes: 3 additions & 3 deletions lib/pages/scan/scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class _MainPageState extends State<MainPage> {
content: Text(t.scan.tryAgain),
actions: <Widget>[
TextButton(
child: Text('Zamknij.'),
child: Text(t.scan.closeError),
onPressed: () {
_scanBloc
.add(ScanEvent.alertDialogDismissed());
Expand Down Expand Up @@ -147,8 +147,8 @@ class _MainPageState extends State<MainPage> {
boxShadow: [],
),
child: _isTorchOn
? Assets.menuPage.flashlighton.svg()
: Assets.menuPage.flashlightoff.svg(),
? Assets.scan.flashlightOn.svg()
: Assets.scan.flashlightOff.svg(),
),
),
],
Expand Down
27 changes: 17 additions & 10 deletions lib/theme/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ui/list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class _ListItem extends StatelessWidget {
Expanded(child: child),
Padding(
padding: EdgeInsets.only(right: 8.0),
child: Assets.menuPage.showmore.svg(),
child: Assets.menuPage.showMore.svg(),
),
],
),
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ flutter:
- assets/fonts/
- assets/company/
- assets/navigation/
- assets/scan/

fonts:
- family: Roboto
Expand Down

0 comments on commit ff346e8

Please sign in to comment.