mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
25 lines
719 B
Dart
25 lines
719 B
Dart
import 'package:apidash_design_system/apidash_design_system.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class JsonSearchField extends StatelessWidget {
|
|
const JsonSearchField({super.key, this.onChanged, this.controller});
|
|
|
|
final void Function(String)? onChanged;
|
|
final TextEditingController? controller;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ADRawTextField(
|
|
controller: controller,
|
|
onChanged: onChanged,
|
|
style: kCodeStyle.copyWith(
|
|
fontSize: Theme.of(context).textTheme.bodySmall?.fontSize,
|
|
),
|
|
hintText: 'Search..',
|
|
hintTextStyle: kCodeStyle.copyWith(
|
|
fontSize: Theme.of(context).textTheme.bodySmall?.fontSize,
|
|
),
|
|
);
|
|
}
|
|
}
|