Skip to content

Commit

Permalink
flutter analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainDario committed Sep 5, 2023
1 parent 44f57d6 commit a33d1f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

import 'package:flutter/foundation.dart';

@Timeout(Duration(minutes: 1))
//@Timeout(Duration(minutes: 1))
import 'dart:io';
import 'dart:typed_data';

import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
8 changes: 5 additions & 3 deletions example/text_classification/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
import 'package:flutter/material.dart';
import 'package:tflite_flutter_plugin_example/classifier.dart';

void main() => runApp(MyApp());
void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
const MyApp({super.key});

@override
_MyAppState createState() => _MyAppState();
State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
Expand Down Expand Up @@ -90,7 +92,7 @@ class _MyAppState extends State<MyApp> {
"Input: $text",
style: const TextStyle(fontSize: 16),
),
Text("Output:"),
const Text("Output:"),
Text(" Positive: ${prediction[1]}"),
Text(" Negative: ${prediction[0]}"),
],
Expand Down
2 changes: 1 addition & 1 deletion example/text_classification/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'package:tflite_flutter_plugin_example/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());
await tester.pumpWidget(const MyApp());

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

0 comments on commit a33d1f3

Please sign in to comment.