mirror of
https://github.com/flutter/samples.git
synced 2026-04-28 10:36:37 +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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user