Este pacote oferece um seletor de altura com estilo Cupertino sem interrupções, suportando centímetros (métrico) e pés/polegadas (imperial), proporcionando versatilidade e precisão para os usuários.
Orientação gerada a partir de informações públicas. Apenas para referência.
O pacote cupertino_height_picker fornece um seletor de altura com estilo Cupertino nativo para aplicativos Flutter, suportando unidades métricas (centímetros) e imperiais (pés/polegadas). Oferece uma interface suave e interativa que se integra perfeitamente às diretrizes de design do iOS, mantendo funcionalidade em Android, Web, macOS, Windows e Linux. Projetado para precisão e usabilidade, permite que os usuários selecionem sua altura com rolagem intuitiva e feedback visual claro. O seletor é altamente personalizável e adequado para formulários que exigem entrada precisa de altura.
Casos de uso
Configuração do perfil do usuário
Aplicativos de saúde e condicionamento físico
Coleta de dados médicos
Entradas de formulário baseadas na idade/altura
Seleção de altura personalizável em aplicativos
Principais recursos
UI no estilo Cupertino
Suporta unidades métricas e imperiais
Compatibilidade multiplataforma
Interface de rolagem suave
Aparência personalizável
Seleção de altura precisa
Indicado para
Aplicativos Flutter voltados para iOS
Aplicativos de saúde multiplataforma
Aplicações com muitos formulários
Interfaces de usuário consistentes com o design
Desenvolvedores procurando seletores nativos
Considerações
Requer Flutter 3.0 ou superior
Personalização limitada do layout interno
Pode ser necessário estilização adicional para temas não-Cupertino
Não otimizado para conjuntos de dados muito grandes
Depende dos comportamentos específicos da plataforma para renderização
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
🎚️ Cupertino Height Picker Plugin
A seamless Cupertino-style height picker widget for Flutter.
Supports height selection in both centimeters (metric) and feet/inches (imperial), providing versatility and precision for users.
Imperial System
Metric System
Automatic Unit Conversion
Features
Automatic Unit Conversion: Effortlessly switch between centimeters and feet/inches with automatic conversions.
Decimal Value Precision: Allows for precise height measurements.
Cupertino Styled Number Picker: A clean, intuitive interface consistent with iOS design.
Light & Dark Themes: Built-in support for both light and dark themes, adapting to the user's theme settings.
Call the default showCupertinoHeightPicker Function which always returns the height in centimeters and has automatic unit conversion enabled by default
context: (Required) The BuildContext object, which is necessary for rendering the height picker within the widget tree.
onHeightChanged: (Required) A callback function that handles height changes when the user scrolls through different height values. The selected height is returned in centimeters.
initialHeight: Sets the default initial height value when the picker is opened. The default is 150.0 cm.
initialSelectedHeightUnit: Specifies the default height unit (either HeightUnit.inches or HeightUnit.cm) when the picker is opened. The default is HeightUnit.inches.
canConvertUnit: A boolean that determines whether the height picker allows conversion between imperial and metric systems. The default is true.
showSeparationText: A boolean that controls whether a separation text (e.g., 'feet') or a decimal point text is shown between the two sliders. The default is true.
modalHeight: Specifies the height of the modal sheet. The default value is 216.0.
maxModalWidth: Defines the maximum width of the modal sheet. This is useful for responsiveness on larger screens, such as tablets and laptops. If null, the modal takes up the full device width. The default is null.
modalBackgroundColor: Defines the background color of the modal sheet. The default is null.
barrierColor: Sets the color of the screen behind the modal, allowing for a custom background color with reduced opacity. The default is kCupertinoModalBarrierColor.