-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
126 changed files
with
5,755 additions
and
1,469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
analyzer: | ||
exclude: [flutter, site-shared, src, tmp, 'examples/codelabs'] | ||
exclude: [flutter, site-shared, src, tmp] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
void main() => runApp(const AccessibleApp()); | ||
|
||
class AccessibleApp extends StatelessWidget { | ||
const AccessibleApp({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
title: 'Your accessible app', | ||
home: Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Your accessible app'), | ||
), | ||
), | ||
); | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
examples/basics/pubspec.yaml → examples/accessibility/pubspec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:your_accessible_app/main.dart'; | ||
|
||
void main() { | ||
testWidgets('Follows a11y guidelines', (tester) async { | ||
final SemanticsHandle handle = tester.ensureSemantics(); | ||
await tester.pumpWidget(const AccessibleApp()); | ||
|
||
// Checks that tappable nodes have a minimum size of 48 by 48 pixels | ||
// for Android. | ||
await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); | ||
|
||
// Checks that tappable nodes have a minimum size of 44 by 44 pixels | ||
// for iOS. | ||
await expectLater(tester, meetsGuideline(iOSTapTargetGuideline)); | ||
|
||
// Checks that touch targets with a tap or long press action are labeled. | ||
await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); | ||
|
||
// Checks whether semantic nodes meet the minimum text contrast levels. | ||
// The recommended text contrast is 3:1 for larger text | ||
// (18 point and above regular). | ||
await expectLater(tester, meetsGuideline(textContrastGuideline)); | ||
handle.dispose(); | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
Submodule codelabs
deleted from
ad3196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.