[SYNC]
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
//s1 Imports
|
||||
//s2 Core Package Imports
|
||||
import 'package:flutter/widgets.dart';
|
||||
//
|
||||
//s2 1st-party Package Imports
|
||||
//s2 3rd-party Package Imports
|
||||
//s2 Dependancies Imports
|
||||
//s3 Routes
|
||||
//s3 Services
|
||||
//s3 Models
|
||||
import 'src/text_field.dart';
|
||||
import 'src/action_field.dart';
|
||||
import 'src/models/models.exports.dart';
|
||||
//
|
||||
//s1 Exports
|
||||
export 'src/models/models.exports.dart';
|
||||
export 'src/enums/enums.exports.dart';
|
||||
|
||||
@@ -12,20 +19,14 @@ class AstromicFields {
|
||||
static Widget text({
|
||||
required TextEditingController controller,
|
||||
Key? stateKey,
|
||||
//
|
||||
void Function(String v)? onChanged,
|
||||
void Function(String v)? onSubmited,
|
||||
//
|
||||
AstromicFieldConfiguration? configuration,
|
||||
//
|
||||
AstromicFieldStyle Function(bool isEnabled, bool isFocused)? style,
|
||||
//
|
||||
String? hint,
|
||||
//
|
||||
Widget? Function(bool isEnabled, bool isFocused, VoidCallback stateSetter)? prefixWidget,
|
||||
Widget? Function(bool isEnabled, bool isFocused, VoidCallback stateSetter)? suffixWidget,
|
||||
Widget? Function(bool isEnabled, bool isFocused)? messageBuilder,
|
||||
//
|
||||
Iterable<ContextMenuButtonItem>? contextButtons,
|
||||
}) =>
|
||||
Column(
|
||||
@@ -51,19 +52,14 @@ class AstromicFields {
|
||||
{Key? stateKey,
|
||||
(T item, String label)? initialValue,
|
||||
required TextEditingController controller,
|
||||
//
|
||||
Future<(T item, String label)?> Function((T item, String label)? currentValue)? onTap,
|
||||
Future<(T item, String label)?> Function((T item, String label)? currentValue)? onHold,
|
||||
|
||||
/// Map the old controller value and the new selected value to how it will look in the field. e.g Adding a new choosen value as a list in the field.
|
||||
required String Function(String? oldValue, String newValue) onValueChangedMapper,
|
||||
//
|
||||
AstromicFieldConfiguration? configuration,
|
||||
//
|
||||
AstromicFieldStyle Function(bool isEnabled)? style,
|
||||
//
|
||||
String? hint,
|
||||
//
|
||||
Widget? Function(bool isEnabled, VoidCallback stateSetter)? prefixWidget,
|
||||
Widget? Function(bool isEnabled, VoidCallback stateSetter)? suffixWidget,
|
||||
Widget? Function(bool isEnabled)? messageBuilder}) =>
|
||||
|
||||
Reference in New Issue
Block a user