diff --git a/example/lib/main.dart b/example/lib/main.dart index 89a4501..fb52e22 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:flutter_link_previewer/flutter_link_previewer.dart'; +import 'package:flutter/services.dart'; import 'package:flutter_chat_types/flutter_chat_types.dart' show PreviewData; +import 'package:flutter_link_previewer/flutter_link_previewer.dart'; void main() { runApp(const MyApp()); @@ -42,7 +43,7 @@ class _MyHomePageState extends State { return Scaffold( backgroundColor: Colors.white, appBar: AppBar( - brightness: Brightness.dark, + systemOverlayStyle: SystemUiOverlayStyle.dark, title: const Text('Example'), ), body: ListView.builder(