0
respostas

The name 'MyApp' isn't a class.

Boa tarde, pessoal.

Estou utilizando o código abaixo e é exibido o seguinte retorno no momento da compilação. error: The name 'MyApp' isn't a class. (creation_with_non_type at [bytebank] test\widget_test.dart:16)

Podem me apontar onde estou errando?

----------- código ----------- import 'package:flutter/material.dart';

void main() => runApp(MaterialApp( home: Scaffold( body: Card( child: ListTile( leading: Icon(Icons.monetization_on), title: Text('Text de valor'), subtitle: Text('Segundo valor'), ), ), appBar: AppBar( title: Text('Transferencia', textDirection: TextDirection.ltr),), floatingActionButton: FloatingActionButton( child: Icon(Icons.add), onPressed: null, ), ), ) );