Skip to content

Commit

Permalink
style: Fix lines which are too long
Browse files Browse the repository at this point in the history
  • Loading branch information
marianhlavac committed Sep 7, 2022
1 parent ce67672 commit 7654e38
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
10 changes: 6 additions & 4 deletions lib/bloc/screen_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class ScreenState {
double bottomBarHeight;
double textScaleFactor;

/// allowFontScaling Specifies whether fonts should scale to respect Text Size accessibility settings. The default is false.
/// allowFontScaling Specifies whether fonts should scale to respect
/// Text Size accessibility settings. The default is false.
bool allowFontScaling;

ScreenState({
Expand Down Expand Up @@ -92,9 +93,10 @@ class ScreenCubit extends Cubit<ScreenState> {
num setWidth(num width) => width * scaleWidth;

/// Highly adaptable to the device according to UI Design
/// It is recommended to use this method to achieve a high degree of adaptation
/// when it is found that one screen in the UI design
/// does not match the current style effect, or if there is a difference in shape.
/// It is recommended to use this method to achieve a high degree of
/// adaptation when it is found that one screen in the UI design
/// does not match the current style effect, or if there is a difference
/// in shape.
num setHeight(num height) => height * scaleHeight;

///Font size adaptation method
Expand Down
12 changes: 6 additions & 6 deletions lib/bloc/showcase_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ class ShowcaseCubit extends Cubit<ShowcaseState> {
'start and stop scans.';
final String searchDescription = 'Use the search to search for locations.';
final String mapDescription =
'Pan, zoom and rotate the map with touch gestures, tap on aircraft or zone '
'to highlight.';
'Pan, zoom and rotate the map with touch gestures, tap on aircraft or '
'zone to highlight.';
final String mapToolbarDescription =
'Use the map toolbar to center on your position, change the zoom or switch '
'to satellite map';
'Use the map toolbar to center on your position, change the zoom or '
'switch to satellite map';
final String droneDetailPanelDescription =
'After tapping on an item on a list or selecting aircraft from the map, see '
'detailed Aircraft information.\nAll the data acquired will be shown '
'After tapping on an item on a list or selecting aircraft from the map, '
'see detailed Aircraft information.\nAll the data acquired will be shown '
'here.';
final String droneDetailMoreDescription =
'More options are accessible in the menu. Export, share, delete data or '
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/preferences/preferences_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ class PreferencesPage extends StatelessWidget {
padding: itemPadding,
child: const PreferencesFieldWithDescription(
label: 'Clean automatically:',
description:
'Aircrafts inactive for chosen time will be automatically cleared',
description: 'Aircrafts inactive for chosen time '
'will be automatically cleared',
child: CleanPacksCheckbox(),
),
),
Expand Down

0 comments on commit 7654e38

Please sign in to comment.