veilidchat/lib/pages/index.dart

43 lines
1.4 KiB
Dart
Raw Normal View History

2023-01-09 22:50:34 -05:00
import 'package:flutter/material.dart';
2023-07-22 23:29:10 -04:00
import 'package:radix_colors/radix_colors.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:window_manager/window_manager.dart';
2023-01-09 22:50:34 -05:00
class IndexPage extends StatelessWidget {
const IndexPage({super.key});
static const path = '/';
@override
Widget build(BuildContext context) {
2023-07-22 23:29:10 -04:00
windowManager.setTitleBarStyle(TitleBarStyle.hidden);
return Scaffold(
body: DecoratedBox(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: <Color>[
RadixColors.dark.plum.step4,
RadixColors.dark.plum.step2,
])),
child: Center(
child: ConstrainedBox(
constraints: const BoxConstraints(maxHeight: 300),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expanded(
flex: 2,
child: SvgPicture.asset(
"assets/images/icon.svg",
)),
Expanded(
flex: 1,
child: SvgPicture.asset(
"assets/images/title.svg",
))
]))),
));
2023-01-09 22:50:34 -05:00
}
}