I've created a separate page with a StatefulWidget
inside my Flutter app, and it has a Text
widget inside of it.
However, when testing my app, the text does not render as intended - instead it shows up in a weird font with yellow underlining.
Here's my code:
import 'package:flutter/material.dart';
class ListsPage extends StatefulWidget {
@override
State<StatefulWidget> createState() {
return _ListsPageState();
}
}
class _ListsPageState extends State {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Text('Log in page'),
);
}
}