Skip to content

Commit

Permalink
fixes review
Browse files Browse the repository at this point in the history
  • Loading branch information
D3bi7 committed Sep 23, 2024
1 parent 5f29acc commit 1577572
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 32 deletions.
Binary file removed assets/scan/ic_flash_off_white_48dp.png
Binary file not shown.
Binary file removed assets/scan/ic_flash_on_white_48dp.png
Binary file not shown.
14 changes: 8 additions & 6 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: 26
/// Strings: 27
///
/// Built on 2024-09-21 at 09:04 UTC
/// Built on 2024-09-23 at 20:18 UTC
// coverage:ignore-file
// ignore_for_file: type=lint
Expand Down Expand Up @@ -199,10 +199,11 @@ class _StringsScanEn {

// Translations
String get scanning => 'Skanowanie';
String get tryagain => 'Niestety nie udało się pobrać danych. Spróbuj ponownie.';
String get tryAgain => 'Niestety nie udało się pobrać danych. Spróbuj ponownie.';
String get pkt => ' pkt';
String get wait => 'Proszę czekać, trwa Ładowanie...';
String get lastscans => 'Ostatnie skany:';
String get lastScans => 'Ostatnie skany:';
String get error => 'Wystąpił błąd';
}

/// Flat map(s) containing all translations.
Expand Down Expand Up @@ -233,10 +234,11 @@ extension on Translations {
case 'companyScreen.companyFriend': return ' Ta firma jest przyjacielem Poli';
case 'companyScreen.polaFriends': return 'Przyjaciele Poli';
case 'scan.scanning': return 'Skanowanie';
case 'scan.tryagain': return 'Niestety nie udało się pobrać danych. Spróbuj ponownie.';
case 'scan.tryAgain': return 'Niestety nie udało się pobrać danych. Spróbuj ponownie.';
case 'scan.pkt': return ' pkt';
case 'scan.wait': return 'Proszę czekać, trwa Ładowanie...';
case 'scan.lastscans': return 'Ostatnie skany:';
case 'scan.lastScans': return 'Ostatnie skany:';
case 'scan.error': return 'Wystąpił błąd';
default: return null;
}
}
Expand Down
5 changes: 3 additions & 2 deletions lib/i18n/strings.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
},
"scan": {
"scanning": "Skanowanie",
"tryagain": "Niestety nie udało się pobrać danych. Spróbuj ponownie.",
"tryAgain": "Niestety nie udało się pobrać danych. Spróbuj ponownie.",
"pkt":" pkt",
"wait": "Proszę czekać, trwa Ładowanie...",
"lastscans": "Ostatnie skany:"
"lastScans": "Ostatnie skany:",
"error": "Wystąpił błąd"


}
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/scan/companies_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class _ListHeader extends StatelessWidget {
child: Align(
alignment: Alignment.centerLeft,
child: Text(
t.scan.lastscans,
t.scan.lastScans,
style: TextStyle(
fontSize: TextSize.mediumTitle,
fontWeight: FontWeight.bold,
Expand Down
24 changes: 2 additions & 22 deletions lib/pages/scan/scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ class _MainPageState extends State<MainPage> {
barrierDismissible: false,
builder: (BuildContext context) {
return AlertDialog(
title: Text('Wystąpił błąd'),
content: Text(t.scan.tryagain),
title: Text(t.scan.error),
content: Text(t.scan.tryAgain),
actions: <Widget>[
TextButton(
child: Text('Zamknij.'),
Expand Down Expand Up @@ -158,26 +158,6 @@ class _MainPageState extends State<MainPage> {
],
),
),
Positioned(
bottom: 35,
right: 5,
child: GestureDetector(
onTap: () {
setState(() {
_isTorchOn = !_isTorchOn;
cameraController.toggleTorch();
});
},
child: Container(
decoration: BoxDecoration(
boxShadow: [],
),
child: _isTorchOn
? Assets.menuPage.flashlighton.svg()
: Assets.menuPage.flashlightoff.svg(),
),
),
),
],
),
extendBodyBehindAppBar: true,
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class _ListItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Padding(
padding: EdgeInsets.only(top: 4.0, left: 16.0, right: 68.0, bottom: 4.0),
padding: EdgeInsets.only(top: 4.0, left: 16.0, right: 8.0, bottom: 4.0),
child: Container(
height: 40,
child: DecoratedBox(
Expand Down

0 comments on commit 1577572

Please sign in to comment.