1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-29 06:18:51 +00:00
comunicmobile/lib/ui/widgets/tour/first_pane.dart

37 lines
1.0 KiB
Dart
Raw Normal View History

2021-04-23 16:11:17 +00:00
import 'package:comunic/models/config.dart';
2021-04-23 11:43:24 +00:00
import 'package:comunic/ui/widgets/tour/fixed_tour_size_text_area.dart';
import 'package:comunic/utils/intl_utils.dart';
import 'package:flutter/material.dart';
/// First tour pane
///
/// @author Pierre Hubert
class FirstTourPane extends StatelessWidget {
2021-04-23 16:11:17 +00:00
final String msgOne;
final String msgTwo;
const FirstTourPane({Key key, this.msgOne, this.msgTwo}) : super(key: key);
2021-04-23 11:43:24 +00:00
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Spacer(flex: 3),
Text(
2021-04-23 16:11:17 +00:00
config().appName,
2021-04-23 11:43:24 +00:00
style: TextStyle(fontSize: 25),
),
Spacer(flex: 2),
2021-04-23 16:11:17 +00:00
FixedTourSizeTextArea(msgOne ??
tr("Welcome to Comunic, the social network that respect your privacy!")),
2021-04-23 11:43:24 +00:00
Spacer(flex: 1),
2021-04-23 16:11:17 +00:00
FixedTourSizeTextArea(msgTwo ??
tr("Let's configure a few things and present you some features of the network...")),
2021-04-23 11:43:24 +00:00
Spacer(flex: 3),
],
);
}
}