This commit is contained in:
Alex
2024-12-20 10:12:52 -06:00
parent 9e99973c18
commit 90f893df66
@@ -223,56 +223,59 @@ class OnboardingGalleryPermission extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ListView( return Padding(
padding: const EdgeInsets.all(24.0), padding: const EdgeInsets.all(24.0),
physics: const ClampingScrollPhysics(), child: Column(
children: [ children: [
Row( Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Icon( Icon(
Icons.perm_media_outlined, Icons.perm_media_outlined,
size: 48, size: 24,
color: context.primaryColor.withAlpha(250), color: context.primaryColor.withAlpha(250),
),
const SizedBox(width: 16),
Text(
"Gallery Permission",
style: context.textTheme.headlineSmall?.copyWith(
fontWeight: FontWeight.w600,
color: context.primaryColor,
),
),
],
),
const SizedBox(height: 16),
Text(
"We use the read and write permission of the media gallery for the following actions",
style: context.textTheme.headlineSmall?.copyWith(
fontWeight: FontWeight.w400,
color: context.colorScheme.onSurface.withAlpha(220),
), ),
],
),
const SizedBox(height: 32),
Text(
"Gallery Permission",
style: context.textTheme.headlineMedium?.copyWith(
fontWeight: FontWeight.w600,
), ),
), const SizedBox(height: 40),
const SizedBox(height: 8), const BulletList([
Text( 'Display the local videos and images',
"We need the read and write permission of the media gallery for the following actions", 'Read the file content to upload to your Immich instance',
style: context.textTheme.headlineSmall?.copyWith( 'Remove media from the device on your request',
fontWeight: FontWeight.w400, ]),
color: context.colorScheme.onSurface.withAlpha(220), const Spacer(),
), SizedBox(
), height: 48,
const SizedBox(height: 40), width: double.infinity,
const BulletList([ child: ElevatedButton(
'Display the local videos and images', onPressed: onNextPage,
'Read the file content to upload to your Immich instance', child: const Text(
'Remove the media from the device on your request', 'OK',
]), style: TextStyle(
const SizedBox(height: 64), fontSize: 18,
SizedBox( fontWeight: FontWeight.w600,
height: 48, ),
child: ElevatedButton(
onPressed: onNextPage,
child: const Text(
'OK',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
), ),
), ),
), ),
), ],
], ),
); );
} }
} }