Surface/lib/screens/home.dart

41 lines
1.1 KiB
Dart
Raw Normal View History

2024-11-08 16:09:46 +00:00
import 'package:easy_localization/easy_localization.dart';
2024-11-10 11:47:48 +00:00
import 'package:material_symbols_icons/symbols.dart';
import 'package:styled_widget/styled_widget.dart';
2024-11-08 16:09:46 +00:00
import 'package:surface/widgets/navigation/app_scaffold.dart';
2024-11-10 11:47:48 +00:00
import 'package:flutter/material.dart';
2024-11-08 16:09:46 +00:00
class HomeScreen extends StatefulWidget {
const HomeScreen({super.key});
@override
State<HomeScreen> createState() => _HomeScreenState();
}
class _HomeScreenState extends State<HomeScreen> {
@override
Widget build(BuildContext context) {
return AppScaffold(
appBar: AppBar(
title: Text("screenHome").tr(),
),
2024-11-10 11:47:48 +00:00
body: Column(
children: [
MaterialBanner(
leading: const Icon(Symbols.construction),
content: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('nextVersionAlert').tr().bold(),
Text('nextVersionNotice').tr(),
],
).padding(vertical: 16),
actions: [
const SizedBox(),
],
),
],
),
2024-11-08 16:09:46 +00:00
);
}
}