flutter_clock_example/lib/about_page.dart

51 lines
1.3 KiB
Dart

import 'package:flutter/material.dart';
class AboutPage extends StatelessWidget {
const AboutPage({super.key});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Center(
child: Column (
children: [
const SizedBox(height: 30),
Container(
width: 120,
height: 120,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: theme.colorScheme.onPrimary,
width: 2,
),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.2),
blurRadius: 8,
spreadRadius: 2,
offset: const Offset(0, 4),
),
],
),
child: ClipOval(
child: Image.network(
'https://trle5.xyz/assets/avatar/70455873_p3.webp',
width: 192,
height: 192,
fit: BoxFit.cover,
),
),
),
const SizedBox(height: 30),
Text(
'Hubert Chen',
style: theme.textTheme.displayMedium!.copyWith(
color: theme.colorScheme.secondary,
),
),
],
)
);
}
}