-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #392 from bannzai/imp/view/rest_duration
- Loading branch information
Showing
51 changed files
with
2,789 additions
and
340 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
58 changes: 58 additions & 0 deletions
58
...ll_sheet_modified_history/components/pill_sheet_modified_history_began_rest_duration.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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:pilll/components/atoms/font.dart'; | ||
import 'package:pilll/components/atoms/text_color.dart'; | ||
import 'package:pilll/domain/calendar/components/pill_sheet_modified_history/components/pill_sheet_modified_history_date_component.dart'; | ||
import 'package:pilll/entity/pill_sheet_modified_history_value.dart'; | ||
|
||
class PillSheetModifiedHistoryBeganRestDuration extends StatelessWidget { | ||
final DateTime estimatedEventCausingDate; | ||
final BeganRestDurationValue? value; | ||
|
||
const PillSheetModifiedHistoryBeganRestDuration({ | ||
Key? key, | ||
required this.value, | ||
required this.estimatedEventCausingDate, | ||
}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final value = this.value; | ||
if (value == null) { | ||
return Container(); | ||
} | ||
return Container( | ||
child: Padding( | ||
padding: const EdgeInsets.only(top: 4, bottom: 4), | ||
child: Row( | ||
children: [ | ||
PillSheetModifiedHistoryDate( | ||
estimatedEventCausingDate: estimatedEventCausingDate, | ||
effectivePillNumber: | ||
PillSheetModifiedHistoryDateEffectivePillNumber.hyphen()), | ||
Spacer(), | ||
Container( | ||
width: PillSheetModifiedHistoryTakenActionLayoutWidths.trailing, | ||
child: Row( | ||
children: [ | ||
Container( | ||
child: Text( | ||
"休薬開始", | ||
style: TextStyle( | ||
color: TextColor.main, | ||
fontSize: 12, | ||
fontFamily: FontFamily.japanese, | ||
fontWeight: FontWeight.w400, | ||
), | ||
textAlign: TextAlign.start, | ||
), | ||
), | ||
Spacer(), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
...ll_sheet_modified_history/components/pill_sheet_modified_history_ended_rest_duration.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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:pilll/components/atoms/font.dart'; | ||
import 'package:pilll/components/atoms/text_color.dart'; | ||
import 'package:pilll/domain/calendar/components/pill_sheet_modified_history/components/pill_sheet_modified_history_date_component.dart'; | ||
import 'package:pilll/entity/pill_sheet_modified_history_value.dart'; | ||
|
||
class PillSheetModifiedHistoryEndedRestDuration extends StatelessWidget { | ||
final DateTime estimatedEventCausingDate; | ||
final EndedRestDurationValue? value; | ||
|
||
const PillSheetModifiedHistoryEndedRestDuration({ | ||
Key? key, | ||
required this.estimatedEventCausingDate, | ||
required this.value, | ||
}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final value = this.value; | ||
if (value == null) { | ||
return Container(); | ||
} | ||
return Container( | ||
child: Padding( | ||
padding: const EdgeInsets.only(top: 4, bottom: 4), | ||
child: Row( | ||
children: [ | ||
PillSheetModifiedHistoryDate( | ||
estimatedEventCausingDate: estimatedEventCausingDate, | ||
effectivePillNumber: | ||
PillSheetModifiedHistoryDateEffectivePillNumber.hyphen()), | ||
Spacer(), | ||
Container( | ||
width: PillSheetModifiedHistoryTakenActionLayoutWidths.trailing, | ||
child: Row( | ||
children: [ | ||
Container( | ||
child: Text( | ||
"休薬終了", | ||
style: TextStyle( | ||
color: TextColor.main, | ||
fontSize: 12, | ||
fontFamily: FontFamily.japanese, | ||
fontWeight: FontWeight.w400, | ||
), | ||
textAlign: TextAlign.start, | ||
), | ||
), | ||
Spacer(), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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
Oops, something went wrong.