Fix more warnings (forgot to save the files)

pull/145/head
Till Friebe 4 years ago
parent e1793ead61
commit ff61b1a951
  1. 16
      example/lib/pages/home_page.dart
  2. 2
      example/lib/universal_ui/universal_ui.dart
  3. 2
      example/test/widget_test.dart

@ -131,15 +131,15 @@ class _HomePageState extends State<HomePage> {
customStyles: DefaultStyles(
h1: DefaultTextBlockStyle(
const TextStyle(
fontSize: 32.0,
fontSize: 32,
color: Colors.black,
height: 1.15,
fontWeight: FontWeight.w300,
),
const Tuple2(16.0, 0.0),
const Tuple2(0.0, 0.0),
const Tuple2(16, 0),
const Tuple2(0, 0),
null),
sizeSmall: const TextStyle(fontSize: 9.0),
sizeSmall: const TextStyle(fontSize: 9),
),
embedBuilder: defaultEmbedBuilderWeb);
}
@ -151,7 +151,7 @@ class _HomePageState extends State<HomePage> {
flex: 15,
child: Container(
color: Colors.white,
padding: const EdgeInsets.only(left: 16.0, right: 16.0),
padding: const EdgeInsets.only(left: 16, right: 16),
child: quillEditor,
),
),
@ -186,7 +186,7 @@ class _HomePageState extends State<HomePage> {
Widget _buildMenuBar(BuildContext context) {
final size = MediaQuery.of(context).size;
final itemStyle = const TextStyle(
const itemStyle = TextStyle(
color: Colors.white,
fontSize: 18,
fontWeight: FontWeight.bold,
@ -201,7 +201,7 @@ class _HomePageState extends State<HomePage> {
endIndent: size.width * 0.1,
),
ListTile(
title: Center(child: Text('Read only demo', style: itemStyle)),
title: const Center(child: Text('Read only demo', style: itemStyle)),
dense: true,
visualDensity: VisualDensity.compact,
onTap: _readOnly,
@ -220,7 +220,7 @@ class _HomePageState extends State<HomePage> {
Navigator.push(
super.context,
MaterialPageRoute(
builder: (BuildContext context) => ReadOnlyPage(),
builder: (context) => ReadOnlyPage(),
),
);
}

@ -31,7 +31,7 @@ Widget defaultEmbedBuilderWeb(BuildContext context, leaf.Embed node) {
final String imageUrl = node.value.data;
final size = MediaQuery.of(context).size;
UniversalUI().platformViewRegistry.registerViewFactory(
imageUrl, (int viewId) => html.ImageElement()..src = imageUrl);
imageUrl, (viewId) => html.ImageElement()..src = imageUrl);
return Padding(
padding: EdgeInsets.only(
right: ResponsiveWidget.isMediumScreen(context)

@ -10,7 +10,7 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:app/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
testWidgets('Counter increments smoke test', (tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());

Loading…
Cancel
Save