Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: solidart example #11

Merged
merged 7 commits into from
Jan 27, 2025
Merged

chore: solidart example #11

merged 7 commits into from
Jan 27, 2025

Conversation

nank1ro
Copy link
Member

@nank1ro nank1ro commented Jan 27, 2025

Add the solidart example

@nank1ro nank1ro self-assigned this Jan 27, 2025
@nank1ro nank1ro added the enhancement New feature or request label Jan 27, 2025
@manuel-plavsic
Copy link
Member

Regarding the other PR. Adding support of a platform to this project automatically created this test:

// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:solidart_example/main.dart';

void main() {
  testWidgets('Counter increments smoke test', (WidgetTester tester) async {
    // Build our app and trigger a frame.
    await tester.pumpWidget(const MyApp());

    // Verify that our counter starts at 0.
    expect(find.text('0'), findsOneWidget);
    expect(find.text('1'), findsNothing);

    // Tap the '+' icon and trigger a frame.
    await tester.tap(find.byIcon(Icons.add));
    await tester.pump();

    // Verify that our counter has incremented.
    expect(find.text('0'), findsNothing);
    expect(find.text('1'), findsOneWidget);
  });
}

I must have not noticed that it got created locally.

Copy link
Member

@manuel-plavsic manuel-plavsic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice example. LGTM. I wouldn't change anything 👍

@nank1ro nank1ro merged commit b11b33b into main Jan 27, 2025
1 check passed
@nank1ro nank1ro deleted the chore/solidart-example branch January 27, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants