Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created September 13, 2018 16:23
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/fb9346186b81d1408cd803848dc2aee5 to your computer and use it in GitHub Desktop.
Save MarcinusX/fb9346186b81d1408cd803848dc2aee5 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
class HeightPicker extends StatefulWidget {
final int maxHeight;
final int minHeight;
final int height;
final double widgetHeight;
final ValueChanged<int> onChange;
const HeightPicker(
{Key key,
this.height,
this.widgetHeight,
this.onChange,
this.maxHeight = 190,
this.minHeight = 145})
: super(key: key);
int get totalUnits => maxHeight - minHeight;
@override
_HeightPickerState createState() => _HeightPickerState();
}
class _HeightPickerState extends State<HeightPicker> {
@override
Widget build(BuildContext context) {
return Center(child: Text("height picker"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment