diff --git a/packages/package_info_plus/package_info_plus/example/lib/main.dart b/packages/package_info_plus/package_info_plus/example/lib/main.dart index 3ac6e33362..d3ccb54f3d 100644 --- a/packages/package_info_plus/package_info_plus/example/lib/main.dart +++ b/packages/package_info_plus/package_info_plus/example/lib/main.dart @@ -19,17 +19,18 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( - title: 'PackageInfo Demo', - theme: ThemeData(primarySwatch: Colors.blue), - home: const MyHomePage(title: 'PackageInfo example app'), + title: 'PackageInfoPlus Demo', + theme: ThemeData( + useMaterial3: true, + colorSchemeSeed: const Color(0x9f4376f8), + ), + home: const MyHomePage(), ); } } class MyHomePage extends StatefulWidget { - const MyHomePage({Key? key, this.title}) : super(key: key); - - final String? title; + const MyHomePage({Key? key}) : super(key: key); @override State createState() => _MyHomePageState(); @@ -69,10 +70,10 @@ class _MyHomePageState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: Text(widget.title!), + title: const Text('PackageInfoPlus example'), + elevation: 4, ), - body: Column( - mainAxisAlignment: MainAxisAlignment.center, + body: ListView( children: [ _infoTile('App name', _packageInfo.appName), _infoTile('Package name', _packageInfo.packageName), diff --git a/packages/share_plus/share_plus/example/lib/main.dart b/packages/share_plus/share_plus/example/lib/main.dart index 708ea89d40..bc5ac2f6d1 100644 --- a/packages/share_plus/share_plus/example/lib/main.dart +++ b/packages/share_plus/share_plus/example/lib/main.dart @@ -45,6 +45,7 @@ class DemoAppState extends State { home: Scaffold( appBar: AppBar( title: const Text('Share Plus Plugin Demo'), + elevation: 4, ), body: SingleChildScrollView( padding: const EdgeInsets.all(24),