Clean up code warnings

This commit is contained in:
Hillel Coren 2021-05-24 22:11:39 +03:00
parent 6150dcff68
commit 248e8be2a6
4 changed files with 25 additions and 29 deletions

View File

@ -38,7 +38,7 @@ class LockScreen extends StatelessWidget {
), ),
], ],
), ),
RaisedButton( ElevatedButton(
onPressed: onAuthenticatePressed, onPressed: onAuthenticatePressed,
child: Text(localization.authenticate), child: Text(localization.authenticate),
) )

View File

@ -1,6 +1,5 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io';
import 'package:flutter_styled_toast/flutter_styled_toast.dart'; import 'package:flutter_styled_toast/flutter_styled_toast.dart';
import 'package:invoiceninja_flutter/redux/app/app_actions.dart'; import 'package:invoiceninja_flutter/redux/app/app_actions.dart';
import 'package:invoiceninja_flutter/ui/app/forms/app_dropdown_button.dart'; import 'package:invoiceninja_flutter/ui/app/forms/app_dropdown_button.dart';
@ -572,7 +571,7 @@ class _EnableTwoFactorState extends State<_EnableTwoFactor> {
), ),
], ],
), ),
if (false) /*
Row( Row(
children: [ children: [
Expanded( Expanded(
@ -595,6 +594,7 @@ class _EnableTwoFactorState extends State<_EnableTwoFactor> {
), ),
], ],
), ),
*/
], ],
), ),
), ),

View File

@ -222,9 +222,7 @@ class ContactsPageState extends State<ContactsPage>
items.add(Padding( items.add(Padding(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),
child: RaisedButton( child: ElevatedButton(
elevation: 4.0,
textColor: Theme.of(context).secondaryHeaderColor,
child: Text('ADD CONTACT'), child: Text('ADD CONTACT'),
onPressed: _onAddPressed, onPressed: _onAddPressed,
), ),

View File

@ -257,9 +257,7 @@ class ContactsPage extends StatelessWidget {
..addAll(contacts) ..addAll(contacts)
..add(Padding( ..add(Padding(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.all(16),
child: RaisedButton( child: ElevatedButton(
elevation: 4.0,
textColor: Theme.of(context).secondaryHeaderColor,
child: Text('ADD CONTACT'), child: Text('ADD CONTACT'),
onPressed: () { onPressed: () {
store.dispatch(AddContact()); store.dispatch(AddContact());