-
-
Save MarcinusX/0ca20a5c22382117a32749a0874f4553 to your computer and use it in GitHub Desktop.
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
class _ContentCardState extends State<ContentCard> { | |
bool showInput = true; | |
Widget _buildContentContainer(BoxConstraints viewportConstraints) { | |
[...] | |
child: new IntrinsicHeight( | |
child: showInput | |
? _buildMulticityTab() | |
: PriceTab( | |
height: viewportConstraints.maxHeight - 48.0, | |
), | |
), | |
[...] | |
} | |
Widget _buildMulticityTab() { | |
[...] | |
child: FloatingActionButton( | |
onPressed: () => setState(() => showInput = false), | |
child: Icon(Icons.timeline, size: 36.0), | |
), | |
[...] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment