1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-28 02:18:47 +00:00

Add Radios, CircularProgressIndicator and LinearProgressIndicator to the demo app (#1442)

* Added Radios, CircularProgressIndicator and LinearProgressIndicator

* Modified README

* Fixed readme comment

* Changed layout of indicators

* Ran Flutter format command

* Put two indicators to one row

* Fixed comment

* Ran flutter format

Co-authored-by: Qun Cheng <quncheng@google.com>
This commit is contained in:
Qun Cheng
2022-09-27 15:13:36 -07:00
committed by GitHub
parent 07a613266c
commit 0e46ac55a6
3 changed files with 108 additions and 2 deletions

View File

@@ -63,6 +63,16 @@ void main() {
// Checkboxes
Finder checkboxExample = find.byType(Checkbox);
expect(checkboxExample, findsNWidgets(8));
// Radios
Finder radioExample = find.byType(Radio<Value>);
expect(radioExample, findsNWidgets(2));
// ProgressIndicator
Finder circularProgressIndicator = find.byType(CircularProgressIndicator);
expect(circularProgressIndicator, findsOneWidget);
Finder linearProgressIndicator = find.byType(LinearProgressIndicator);
expect(linearProgressIndicator, findsOneWidget);
});
testWidgets(