Showing
1 changed file
with
7 additions
and
14 deletions
| @@ -686,15 +686,12 @@ class _GetBarState<K extends Object> extends State<GetBar> | @@ -686,15 +686,12 @@ class _GetBarState<K extends Object> extends State<GetBar> | ||
| 686 | } | 686 | } |
| 687 | 687 | ||
| 688 | Widget _getTitleText() { | 688 | Widget _getTitleText() { |
| 689 | - return widget.titleText != null | ||
| 690 | - ? widget.titleText | ||
| 691 | - : Text( | ||
| 692 | - widget.title ?? "", | ||
| 693 | - style: TextStyle( | ||
| 694 | - fontSize: 16.0, | ||
| 695 | - color: Colors.white, | ||
| 696 | - fontWeight: FontWeight.bold), | ||
| 697 | - ); | 689 | + return widget.titleText ?? |
| 690 | + Text( | ||
| 691 | + widget.title ?? "", | ||
| 692 | + style: TextStyle( | ||
| 693 | + fontSize: 16.0, color: Colors.white, fontWeight: FontWeight.bold), | ||
| 694 | + ); | ||
| 698 | } | 695 | } |
| 699 | 696 | ||
| 700 | Text _getDefaultNotificationText() { | 697 | Text _getDefaultNotificationText() { |
| @@ -705,11 +702,7 @@ class _GetBarState<K extends Object> extends State<GetBar> | @@ -705,11 +702,7 @@ class _GetBarState<K extends Object> extends State<GetBar> | ||
| 705 | } | 702 | } |
| 706 | 703 | ||
| 707 | FlatButton _getMainActionButton() { | 704 | FlatButton _getMainActionButton() { |
| 708 | - if (widget.mainButton != null) { | ||
| 709 | - return widget.mainButton; | ||
| 710 | - } else { | ||
| 711 | - return null; | ||
| 712 | - } | 705 | + return widget.mainButton; |
| 713 | } | 706 | } |
| 714 | } | 707 | } |
| 715 | 708 |
-
Please register or login to post a comment