[infra_ui][keyboard] Bump infra_ui to 1.20.0 and fix compiling issues

This commit is contained in:
Jaylen Bian 2021-07-17 00:42:22 +08:00
parent be4f6a8250
commit 1ee5511046
4 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import 'package:example/keyboard/keyboard_screen.dart';
import 'package:flutter/material.dart';
import '../keyboard/keyboard_screen.dart';
import 'demo_item.dart';
class HomeScreen extends StatelessWidget {

View File

@ -1,5 +1,5 @@
import 'package:example/home/home_screen.dart';
import 'package:flutter/material.dart';
import '../home/home_screen.dart';
void main() {
runApp(const ExampleApp());

View File

@ -18,8 +18,12 @@ void main() {
// Verify that platform version is retrieved.
expect(
find.byWidgetPredicate(
<<<<<<< HEAD
(Widget widget) =>
widget is Text && widget.data!.startsWith('Running on:'),
=======
(Widget widget) => widget is Text && widget.data!.startsWith('Running on:'),
>>>>>>> [infra_ui][keyboard] Bump infra_ui to 1.20.0 and fix compiling issues
),
findsOneWidget,
);

View File

@ -1,7 +1,10 @@
import 'package:flutter/material.dart';
class Overlay extends StatelessWidget {
const Overlay({Key? key}) : super(key: key);
const Overlay({
Key? key,
this.safeAreaEnabled = true,
}) : super(key: key);
final bool safeAreaEnabled;