38 lines
1.0 KiB
Dart
38 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
import 'package:notube/constants.dart';
|
|
import 'package:notube/components/dlForm.dart';
|
|
|
|
class Home extends StatelessWidget {
|
|
Home({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Text('home').tr(),
|
|
),
|
|
body: Center(
|
|
child: Container(
|
|
constraints: BoxConstraints.expand(),
|
|
decoration: BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage("assets/images/wallpaper.webp"),
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
child: Column(
|
|
children: <Widget>[
|
|
SizedBox(height: 10),
|
|
Text('home_intro').tr(),
|
|
SizedBox(height: 10),
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 20),
|
|
child: DlForm())
|
|
],
|
|
),
|
|
),
|
|
));
|
|
}
|
|
}
|