-
-
Save MarcinusX/fb9346186b81d1408cd803848dc2aee5 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
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