-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: resolved team testing inputs, mainly rows overlapping bracket …
- Loading branch information
1 parent
17511ff
commit 6ea5b32
Showing
57 changed files
with
494 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 31 additions & 24 deletions
55
...nt/lib/app/pages/journey/train_journey/widgets/table/cells/bracket_station_cell_body.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,55 @@ | ||
import 'package:das_client/app/widgets/das_text_styles.dart'; | ||
import 'package:das_client/model/journey/bracket_station.dart'; | ||
import 'package:sbb_design_system_mobile/sbb_design_system_mobile.dart'; | ||
import 'package:das_client/app/widgets/table/das_table_theme.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:sbb_design_system_mobile/sbb_design_system_mobile.dart'; | ||
|
||
class BracketStationCellBody extends StatelessWidget { | ||
static const Key bracketStationKey = Key('bracketStationKey'); | ||
static const double _bracketStationWidth = 16.0; | ||
static const double _bracketStationFontSize = 12.0; | ||
|
||
const BracketStationCellBody({ | ||
required this.bracketStation, | ||
required this.stationAbbreviation, | ||
required this.height, | ||
super.key, | ||
}); | ||
|
||
final BracketStation bracketStation; | ||
final String? stationAbbreviation; | ||
final double height; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Positioned( | ||
top: -sbbDefaultSpacing, | ||
bottom: -sbbDefaultSpacing, | ||
right: 0, | ||
child: Container( | ||
key: bracketStationKey, | ||
height: height, | ||
width: _bracketStationWidth, | ||
color: SBBColors.black, | ||
child: Align( | ||
alignment: Alignment.center, | ||
child: RotatedBox( | ||
quarterTurns: -1, | ||
child: Text( | ||
bracketStation.mainStationAbbreviation ?? '', | ||
style: DASTextStyles.extraSmallBold.copyWith( | ||
color: SBBColors.white, | ||
fontSize: _bracketStationFontSize, | ||
height: _bracketStationWidth / _bracketStationFontSize, | ||
final tableBorder = DASTableTheme.of(context)?.data.tableBorder; | ||
final bottomBorder = -(tableBorder?.horizontalInside.width ?? 0); | ||
return Stack( | ||
clipBehavior: Clip.none, | ||
children: [ | ||
Positioned( | ||
top: 0, | ||
bottom: bottomBorder, | ||
left: -_bracketStationWidth, | ||
child: Container( | ||
key: bracketStationKey, | ||
height: height, | ||
width: _bracketStationWidth, | ||
color: SBBColors.black, | ||
child: Align( | ||
alignment: Alignment.center, | ||
child: RotatedBox( | ||
quarterTurns: -1, | ||
child: Text( | ||
stationAbbreviation ?? '', | ||
style: DASTextStyles.extraSmallBold.copyWith( | ||
color: SBBColors.white, | ||
fontSize: _bracketStationFontSize, | ||
height: _bracketStationWidth / _bracketStationFontSize, | ||
), | ||
), | ||
), | ||
), | ||
), | ||
), | ||
), | ||
], | ||
); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
...nt/lib/app/pages/journey/train_journey/widgets/table/cells/track_equipment_cell_body.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.