Skip to content

Instantly share code, notes, and snippets.

@MarcinusX MarcinusX/price_tab.dart Secret
Created Sep 3, 2018

What would you like to do?
class PriceTab extends StatefulWidget {
final double height;
const PriceTab({Key key, this.height}) : super(key: key);
_PriceTabState createState() => _PriceTabState();
class _PriceTabState extends State<PriceTab> with TickerProviderStateMixin {
final double _initialPlanePaddingBottom = 16.0;
double get _planeTopPadding => widget.height - _initialPlanePaddingBottom - _planeSize;
double get _planeSize => 60.0;
Widget build(BuildContext context) {
return Container(
width: double.infinity,
child: Stack(
children: <Widget>[_buildPlane()],
Widget _buildPlane() {
return Positioned(
top: _planeTopPadding,
child: Column(
children: <Widget>[
Widget _buildPlaneIcon() {
return Icon(
size: _planeSize,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.