flutter_text_field_fab 0.1.3 flutter_text_field_fab: ^0.1.3 copied to clipboard
flutter_text_field_fab is a simple widget that allows you to turn a floating action button into a text field.
import 'package:flutter/material.dart';
import 'package:flutter_text_field_fab/flutter_text_field_fab.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return Scaffold(
floatingActionButton: TextFieldFloatingActionButton(
'Search...',
Icon(Icons.gamepad),
onChange: (String query) => print(query),
onClear: () => print('I was cleared.'),
),
body: Text('Example'));
}
}