vk_custom_widgets
A lightweight Flutter package providing reusable custom widgets with clean APIs and best practices.
Features
- Simple and reusable custom widgets
- Clean, stateless implementations
- Material design compliant
- Ready for extension and theming
Installation
Add this to your pubspec.yaml:
dependencies:
vk_custom_widgets: ^1.0.0
Then run:
flutter pub get
Usage
Elevated Button
import 'package:vk_custom_widgets/vk_custom_widgets.dart';
VkElevatedButton(
label: 'Submit',
onPressed: () {
// Handle button press
},
);
Password Form Field
VkPasswordFormField(
label: 'Password',
controller: _passwordController,
);
Text Form Field
VkTextFormField(
label: 'Name',
controller: _nameController,
);
Dropdown
VkDropdown<String>(
items: ['Option 1', 'Option 2', 'Option 3'],
value: _selectedValue,
hint: 'Select an option',
onChanged: (value) {
setState(() => _selectedValue = value);
},
);
Libraries
- vk_custom_widgets
- A collection of custom widgets for Flutter, including buttons, text fields, and dropdowns.