Widget build()

in current_results_ui/lib/instructions.dart [9:83]


  Widget build(context) {
    return SingleChildScrollView(
      controller: ScrollController(),
      child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
        Text(
          'Enter a query to see current test results',
          style: TextStyle(fontSize: 24.0),
        ),
        paragraph('Enter query terms that are prefixes of configuration, '
            'experiment or test names.'
            ' Multiple terms can be entered at once, separated by commas.'),
        paragraph('Some example queries are:'),
        for (final example in [
          {
            'description': 'language_2/ tests on analyzer configurations',
            'terms': 'language_2/,analyzer'
          },
          {
            'description': 'service/de* tests on dartk- configurations',
            'terms': 'dartk-,service/de'
          },
          {'description': 'analyzer unit tests', 'terms': 'pkg/analyzer/'},
          {
            'description':
                'all tests on dart2js strong null-safe configuration',
            'terms': 'dart2js-hostasserts-strong'
          },
          {
            'description':
                'all tests that were run with experiment "test-experiment"',
            'terms': 'test-experiment'
          },
          {'description': 'null-safe language tests', 'terms': 'language/'},
        ]) ...[
          SizedBox(height: 12),
          InkWell(
            onTap: () {
              Navigator.pushNamed(
                context,
                '/filter=${example['terms']}',
              );
            },
            child: Text.rich(
              TextSpan(
                text: '${example['description']}: ',
                children: [
                  TextSpan(
                    text: example['terms'],
                    style: TextStyle(
                      color: Colors.blue[900],
                      decoration: TextDecoration.underline,
                    ),
                  )
                ],
              ),
            ),
          ),
        ],
        SizedBox(height: 24.0),
        Text(
          'About Current Results',
          style: TextStyle(fontSize: 24.0),
        ),
        paragraph('For each test, the results show how many '
            'of the selected configurations are passing, failing, and flaky. '
            'The item can be expanded to show which configurations are failing,'
            ' and the configuration names are links to the failure logs.'),
        paragraph('The clock icon after each test name is a link to the '
            'results feed, filtered to show just the history of that test.'),
        paragraph('Results can be downloaded from the server using the '
            'JSON link at the bottom of the page, or as comma-separated '
            'text using the text link.'),
      ]),
    );
  }