mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-23 17:11:23 +00:00
30 lines
746 B
Dart
30 lines
746 B
Dart
![]() |
import 'package:flutter/material.dart';
|
||
|
|
||
|
class SignInBackground extends StatelessWidget {
|
||
|
final Widget child;
|
||
|
const SignInBackground({
|
||
|
Key? key,
|
||
|
required this.child,
|
||
|
}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
var size = MediaQuery.of(context).size;
|
||
|
return SizedBox(
|
||
|
height: size.height,
|
||
|
width: double.infinity,
|
||
|
child: Stack(
|
||
|
alignment: Alignment.center,
|
||
|
children: [
|
||
|
Image(
|
||
|
fit: BoxFit.cover,
|
||
|
width: size.width,
|
||
|
height: size.height,
|
||
|
image: const AssetImage(
|
||
|
'assets/images/appflowy_launch_splash.jpg')),
|
||
|
child,
|
||
|
],
|
||
|
));
|
||
|
}
|
||
|
}
|