Skip to content

Commit 23fa441

Browse files
Merge pull request #19 from DevCrew-io/Remove_warnings
Update code to remove the warnings
2 parents c4bfea8 + 9ebe90a commit 23fa441

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.0.5
1+
## 1.0.6
22
* Add property for max lines and min lines
33

44
## 1.0.5

example/lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class _MyHomePageState extends State<MyHomePage> {
7171
keyboardType: TextInputType.text,
7272
hint: "Full Name",
7373
labelText: "Name",
74-
maxLines: 1,
74+
maxLines: 2,
7575
theme: FilledOrOutlinedTextTheme(
7676
enabledColor: Colors.grey,
7777
focusedColor: Colors.green,

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1919
version: 1.0.0+1
2020

2121
environment:
22-
sdk: '>=2.19.2 <3.0.0'
22+
sdk: '>=2.19.2 <4.0.0'
2323

2424
# Dependencies specify other packages that your package needs in order to work.
2525
# To automatically upgrade your package dependencies to the latest versions

lib/material_text_fields.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ class MaterialTextField extends StatelessWidget {
123123
final TextAlignVertical? textAlignVertical;
124124

125125
/// Max lines for the text field
126-
int? maxLines = 1;
126+
final int? maxLines;
127127

128128
/// Min lines for the text field
129129
final int? minLines;
130130

131-
MaterialTextField(
131+
const MaterialTextField(
132132
{Key? key,
133133
this.textAlign = TextAlign.start,
134134
this.textAlignVertical,

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ issue_tracker: https://github.com/DevCrew-io/material-text-fields/issues
77
documentation: https://github.com/DevCrew-io/material-text-fields/blob/main/example/README.md
88

99
environment:
10-
sdk: '>=2.19.2 <3.0.0'
10+
sdk: '>=2.19.2 <4.0.0'
1111
flutter: ">=1.17.0"
1212

1313
dependencies:

0 commit comments

Comments
 (0)