Browse Source

refactor(neon,neon_files): Remove unnecessary Scrollbars

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/1065/head
jld3103 1 year ago
parent
commit
8242e5a5b8
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/neon/neon/lib/src/pages/login.dart
  2. 4
      packages/neon/neon_files/lib/pages/details.dart

2
packages/neon/neon/lib/src/pages/login.dart

@ -54,7 +54,6 @@ class _LoginPageState extends State<LoginPage> {
body: Center( body: Center(
child: ConstrainedBox( child: ConstrainedBox(
constraints: NeonDialogTheme.of(context).constraints, constraints: NeonDialogTheme.of(context).constraints,
child: Scrollbar(
child: SingleChildScrollView( child: SingleChildScrollView(
padding: const EdgeInsets.all(10), padding: const EdgeInsets.all(10),
primary: true, primary: true,
@ -122,7 +121,6 @@ class _LoginPageState extends State<LoginPage> {
), ),
), ),
), ),
),
); );
} }
} }

4
packages/neon/neon_files/lib/pages/details.dart

@ -16,8 +16,7 @@ class FilesDetailsPage extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: Text(details.name), title: Text(details.name),
), ),
body: Scrollbar( body: ListView(
child: ListView(
primary: true, primary: true,
children: [ children: [
ColoredBox( ColoredBox(
@ -71,6 +70,5 @@ class FilesDetailsPage extends StatelessWidget {
), ),
], ],
), ),
),
); );
} }

Loading…
Cancel
Save