mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 00:12:09 +03:00
Fix some deprecation issues
This commit is contained in:
parent
7f1c849506
commit
d9227990be
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Tags(['desktop', 'android'])
|
@Tags(['desktop', 'android'])
|
||||||
|
library;
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Tags(['desktop', 'management'])
|
@Tags(['desktop', 'management'])
|
||||||
|
library;
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:integration_test/integration_test.dart';
|
import 'package:integration_test/integration_test.dart';
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Tags(['android', 'desktop', 'oath'])
|
@Tags(['android', 'desktop', 'oath'])
|
||||||
|
library;
|
||||||
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:integration_test/integration_test.dart';
|
import 'package:integration_test/integration_test.dart';
|
||||||
import 'package:yubico_authenticator/app/views/keys.dart';
|
import 'package:yubico_authenticator/app/views/keys.dart';
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Tags(['desktop', 'otp'])
|
@Tags(['desktop', 'otp'])
|
||||||
|
library;
|
||||||
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:integration_test/integration_test.dart';
|
import 'package:integration_test/integration_test.dart';
|
||||||
import 'package:yubico_authenticator/app/views/keys.dart';
|
import 'package:yubico_authenticator/app/views/keys.dart';
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Tags(['desktop', 'passkey'])
|
@Tags(['desktop', 'passkey'])
|
||||||
|
library;
|
||||||
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:integration_test/integration_test.dart';
|
import 'package:integration_test/integration_test.dart';
|
||||||
import 'package:yubico_authenticator/fido/keys.dart';
|
import 'package:yubico_authenticator/fido/keys.dart';
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Tags(['desktop', 'piv'])
|
@Tags(['desktop', 'piv'])
|
||||||
|
library;
|
||||||
|
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:integration_test/integration_test.dart';
|
import 'package:integration_test/integration_test.dart';
|
||||||
|
@ -19,4 +19,5 @@ import 'package:yubico_authenticator/desktop/init.dart';
|
|||||||
|
|
||||||
Future<void> startUp(WidgetTester tester,
|
Future<void> startUp(WidgetTester tester,
|
||||||
[Map<dynamic, dynamic>? startUpParams]) async =>
|
[Map<dynamic, dynamic>? startUpParams]) async =>
|
||||||
tester.pumpWidget(await initialize([]), const Duration(milliseconds: 2000));
|
tester.pumpWidget(await initialize([]),
|
||||||
|
duration: const Duration(milliseconds: 2000));
|
||||||
|
@ -427,7 +427,7 @@ class _FidoUnlockedPageState extends ConsumerState<_FidoUnlockedPage> {
|
|||||||
onFieldSubmitted: (value) {
|
onFieldSubmitted: (value) {
|
||||||
Focus.of(context).focusInDirection(TraversalDirection.down);
|
Focus.of(context).focusInDirection(TraversalDirection.down);
|
||||||
},
|
},
|
||||||
),
|
).init(),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
@ -429,7 +429,7 @@ class _UnlockedViewState extends ConsumerState<_UnlockedView> {
|
|||||||
onFieldSubmitted: (value) {
|
onFieldSubmitted: (value) {
|
||||||
Focus.of(context).focusInDirection(TraversalDirection.down);
|
Focus.of(context).focusInDirection(TraversalDirection.down);
|
||||||
},
|
},
|
||||||
),
|
).init(),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
@ -57,7 +57,7 @@ class UseRecommendedWidget extends DartLintRule {
|
|||||||
) {
|
) {
|
||||||
context.registry.addInstanceCreationExpression((node) {
|
context.registry.addInstanceCreationExpression((node) {
|
||||||
if (node.constructorName.toString() == discouraged) {
|
if (node.constructorName.toString() == discouraged) {
|
||||||
reporter.reportErrorForNode(code, node.constructorName);
|
reporter.atNode(node.constructorName, code);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ class CallInitAfterCreation extends DartLintRule {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reporter.reportErrorForNode(code, node.constructorName);
|
reporter.atNode(node.constructorName, code);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user