Instantly share code, notes, and snippets.

Embed
What would you like to do?
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