1
0
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:
benimautner 2022-04-12 21:17:20 +02:00
parent 3202fc6bdb
commit 059f36c828
6 changed files with 5 additions and 7 deletions

View File

@ -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)

View File

@ -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(),
)

View File

@ -1,6 +1,5 @@
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:after_layout/after_layout.dart';

View File

@ -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();

View File

@ -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'))
],

View File

@ -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'))
],