Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: make testing MyApp a stateless widget
  • Loading branch information
bselwe committed Jul 16, 2021
commit 22417958dd8e180dcc2bf2dec45931e4eee08bad
11 changes: 2 additions & 9 deletions packages/camera/camera_web/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,10 @@

import 'package:flutter/material.dart';

void main() {
runApp(MyApp());
}
void main() => runApp(MyApp());

/// App for testing
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Directionality(
Expand Down