@@ -91,7 +91,7 @@ class HomePage extends StatelessWidget {
91
91
body: Center (
92
92
child: Column (
93
93
children: < Widget > [
94
- FlatButton (
94
+ TextButton (
95
95
onPressed: () {
96
96
DatePicker .showDatePicker (context,
97
97
showTitleActions: true ,
@@ -113,7 +113,7 @@ class HomePage extends StatelessWidget {
113
113
'show date picker(custom theme &date time range)' ,
114
114
style: TextStyle (color: Colors .blue),
115
115
)),
116
- FlatButton (
116
+ TextButton (
117
117
onPressed: () {
118
118
DatePicker .showTimePicker (context, showTitleActions: true , onChanged: (date) {
119
119
print ('change $date in time zone ' + date.timeZoneOffset.inHours.toString ());
@@ -125,7 +125,7 @@ class HomePage extends StatelessWidget {
125
125
'show time picker' ,
126
126
style: TextStyle (color: Colors .blue),
127
127
)),
128
- FlatButton (
128
+ TextButton (
129
129
onPressed: () {
130
130
DatePicker .showTime12hPicker (context, showTitleActions: true , onChanged: (date) {
131
131
print ('change $date in time zone ' + date.timeZoneOffset.inHours.toString ());
@@ -137,7 +137,7 @@ class HomePage extends StatelessWidget {
137
137
'show 12H time picker with AM/PM' ,
138
138
style: TextStyle (color: Colors .blue),
139
139
)),
140
- FlatButton (
140
+ TextButton (
141
141
onPressed: () {
142
142
DatePicker .showDateTimePicker (context,
143
143
showTitleActions: true ,
@@ -152,7 +152,7 @@ class HomePage extends StatelessWidget {
152
152
'show date time picker (Chinese)' ,
153
153
style: TextStyle (color: Colors .blue),
154
154
)),
155
- FlatButton (
155
+ TextButton (
156
156
onPressed: () {
157
157
DatePicker .showDateTimePicker (context, showTitleActions: true , onChanged: (date) {
158
158
print ('change $date in time zone ' + date.timeZoneOffset.inHours.toString ());
@@ -164,7 +164,7 @@ class HomePage extends StatelessWidget {
164
164
'show date time picker (English-America)' ,
165
165
style: TextStyle (color: Colors .blue),
166
166
)),
167
- FlatButton (
167
+ TextButton (
168
168
onPressed: () {
169
169
DatePicker .showDateTimePicker (context, showTitleActions: true , onChanged: (date) {
170
170
print ('change $date in time zone ' + date.timeZoneOffset.inHours.toString ());
@@ -176,7 +176,7 @@ class HomePage extends StatelessWidget {
176
176
'show date time picker (Dutch)' ,
177
177
style: TextStyle (color: Colors .blue),
178
178
)),
179
- FlatButton (
179
+ TextButton (
180
180
onPressed: () {
181
181
DatePicker .showDateTimePicker (context, showTitleActions: true , onChanged: (date) {
182
182
print ('change $date in time zone ' + date.timeZoneOffset.inHours.toString ());
@@ -188,7 +188,7 @@ class HomePage extends StatelessWidget {
188
188
'show date time picker (Russian)' ,
189
189
style: TextStyle (color: Colors .blue),
190
190
)),
191
- FlatButton (
191
+ TextButton (
192
192
onPressed: () {
193
193
DatePicker .showDateTimePicker (context, showTitleActions: true , onChanged: (date) {
194
194
print ('change $date in time zone ' + date.timeZoneOffset.inHours.toString ());
@@ -200,7 +200,7 @@ class HomePage extends StatelessWidget {
200
200
'show date time picker in UTC (German)' ,
201
201
style: TextStyle (color: Colors .blue),
202
202
)),
203
- FlatButton (
203
+ TextButton (
204
204
onPressed: () {
205
205
DatePicker .showPicker (context, showTitleActions: true , onChanged: (date) {
206
206
print ('change $date in time zone ' + date.timeZoneOffset.inHours.toString ());
0 commit comments