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 {
|
2022-03-10 18:39:57 +00:00
|
|
|
final String? msgOne;
|
|
|
|
final String? msgTwo;
|
2021-04-23 16:11:17 +00:00
|
|
|
|
2022-03-10 18:39:57 +00:00
|
|
|
const FirstTourPane({Key? key, this.msgOne, this.msgTwo}) : super(key: key);
|
2021-04-23 16:11:17 +00:00
|
|
|
|
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),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|