Skip to content

Commit

Permalink
fix(package_info_plus): Make example app content scrollable (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuberen committed Mar 17, 2023
1 parent 3bb18f2 commit 926f617
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/package_info_plus/package_info_plus/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<MyHomePage> createState() => _MyHomePageState();
Expand Down Expand Up @@ -69,10 +70,10 @@ class _MyHomePageState extends State<MyHomePage> {
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: <Widget>[
_infoTile('App name', _packageInfo.appName),
_infoTile('Package name', _packageInfo.packageName),
Expand Down
1 change: 1 addition & 0 deletions packages/share_plus/share_plus/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class DemoAppState extends State<DemoApp> {
home: Scaffold(
appBar: AppBar(
title: const Text('Share Plus Plugin Demo'),
elevation: 4,
),
body: SingleChildScrollView(
padding: const EdgeInsets.all(24),
Expand Down

0 comments on commit 926f617

Please sign in to comment.