mirror of
https://github.com/go-vikunja/app
synced 2024-06-03 19:19:46 +00:00
migrated from FlatButton to TextButton
This commit is contained in:
parent
3202fc6bdb
commit
059f36c828
|
@ -21,11 +21,11 @@ class AddDialog extends StatelessWidget {
|
|||
)
|
||||
]),
|
||||
actions: <Widget>[
|
||||
new FlatButton(
|
||||
new TextButton(
|
||||
child: const Text('CANCEL'),
|
||||
onPressed: () => Navigator.pop(context),
|
||||
),
|
||||
new FlatButton(
|
||||
new TextButton(
|
||||
child: const Text('ADD'),
|
||||
onPressed: () {
|
||||
if (this.onAdd != null && textController.text.isNotEmpty)
|
||||
|
|
|
@ -10,7 +10,7 @@ class ErrorDialog extends StatelessWidget {
|
|||
return AlertDialog(
|
||||
content: Text(error.toString()),
|
||||
actions: <Widget>[
|
||||
FlatButton(
|
||||
TextButton(
|
||||
child: Text('Close'),
|
||||
onPressed: () => Navigator.of(context).maybePop(),
|
||||
)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:after_layout/after_layout.dart';
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@ class _TaskEditPageState extends State<TaskEditPage> {
|
|||
bool _done;
|
||||
bool changed = false;
|
||||
DateTime _due;
|
||||
TimeOfDay _temp_due_tod;
|
||||
TextEditingController titleController = TextEditingController();
|
||||
TextEditingController descriptionController = TextEditingController();
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ class _LoginPageState extends State<LoginPage> {
|
|||
'Login failed! Please check your server url and credentials. ' +
|
||||
ex.toString()),
|
||||
actions: <Widget>[
|
||||
FlatButton(
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: const Text('Close'))
|
||||
],
|
||||
|
|
|
@ -140,7 +140,7 @@ class _RegisterPageState extends State<RegisterPage> {
|
|||
'Registration failed! Please check your server url and credentials. ' +
|
||||
ex.toString()),
|
||||
actions: <Widget>[
|
||||
FlatButton(
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: const Text('Close'))
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue
Block a user