-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: backspace of initial values is working
Uses the fix described in a comment on issue #115 in the danvick repo. danvick/flutter_chips_input#115 flutter test passes
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ class MyApp extends StatelessWidget { | |
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
title: 'Flutter Chips Input', | ||
title: 'Flutter ChipsInput', | ||
theme: ThemeData( | ||
primarySwatch: Colors.blue, | ||
), | ||
|
@@ -43,7 +43,7 @@ class MyHomePageState extends State<MyHomePage> { | |
]; | ||
|
||
return Scaffold( | ||
appBar: AppBar(title: const Text('Flutter ChipsInput Example')), | ||
appBar: AppBar(title: const Text('Flutter ChipsInput')), | ||
body: Padding( | ||
padding: const EdgeInsets.all(20), | ||
child: SingleChildScrollView( | ||
|
@@ -55,6 +55,9 @@ class MyHomePageState extends State<MyHomePage> { | |
), | ||
ChipsInput( | ||
key: _chipKey, | ||
initialValue: const [ | ||
AppProfile('John', '[email protected]', 'man-3.png') | ||
], | ||
textStyle: const TextStyle( | ||
height: 1.5, | ||
fontFamily: 'Roboto', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters