mirror of
https://github.com/foss42/apidash.git
synced 2025-05-20 07:46:32 +08:00
32 lines
765 B
Dart
32 lines
765 B
Dart
import 'package:apidash_design_system/apidash_design_system.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class CellField extends StatelessWidget {
|
|
const CellField({
|
|
super.key,
|
|
required this.keyId,
|
|
this.initialValue,
|
|
this.hintText,
|
|
this.onChanged,
|
|
this.colorScheme,
|
|
});
|
|
|
|
final String keyId;
|
|
final String? initialValue;
|
|
final String? hintText;
|
|
final void Function(String)? onChanged;
|
|
final ColorScheme? colorScheme;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ADOutlinedTextField(
|
|
keyId: keyId,
|
|
initialValue: initialValue,
|
|
hintText: hintText,
|
|
hintTextFontSize: Theme.of(context).textTheme.bodySmall?.fontSize,
|
|
onChanged: onChanged,
|
|
colorScheme: colorScheme,
|
|
);
|
|
}
|
|
}
|