mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Split CI testing based on flutter channels (#651)
This commit is contained in:
@@ -54,4 +54,3 @@ class _FirebaseUser implements User {
|
||||
|
||||
_FirebaseUser(this.uid);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ class MockAuthService implements Auth {
|
||||
Future<User> signIn() async {
|
||||
// Sign in will randomly fail 25% of the time.
|
||||
var random = Random();
|
||||
if (random.nextInt(4) == 0) {
|
||||
if (random.nextInt(4) == 0) {
|
||||
throw SignInException();
|
||||
}
|
||||
return MockUser();
|
||||
|
||||
@@ -95,7 +95,7 @@ class _SignInButtonState extends State<SignInButton> {
|
||||
}
|
||||
|
||||
void _showError() {
|
||||
Scaffold.of(context).showSnackBar(
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('Unable to sign in.'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user