Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created September 3, 2018 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinusX/0ca20a5c22382117a32749a0874f4553 to your computer and use it in GitHub Desktop.
Save MarcinusX/0ca20a5c22382117a32749a0874f4553 to your computer and use it in GitHub Desktop.
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