-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
23 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,31 @@ | ||
import 'package:fluffychat/config/app_config.dart'; | ||
import 'package:fluffychat/pages/twake_welcome/twake_welcome.dart'; | ||
import 'package:fluffychat/pages/twake_welcome/twake_welcome_view_style.dart'; | ||
import 'package:fluffychat/resource/image_paths.dart'; | ||
import 'package:fluffychat/utils/url_launcher.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/flutter_svg.dart'; | ||
import 'package:flutter_gen/gen_l10n/l10n.dart'; | ||
import 'package:linagora_design_flutter/colors/linagora_sys_colors.dart'; | ||
import 'package:linagora_design_flutter/twake_screen/twake_welcome_screen.dart'; | ||
import 'package:flutter_svg/flutter_svg.dart'; | ||
import 'package:linagora_design_flutter/linagora_design_flutter.dart'; | ||
|
||
class TwakeWelcomeView extends StatelessWidget { | ||
final TwakeWelcomeController controller; | ||
|
||
const TwakeWelcomeView({ | ||
super.key, | ||
required this.controller, | ||
}); | ||
const TwakeWelcomeView({super.key, required this.controller}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return TwakeWelcomeScreen( | ||
welcomeTo: L10n.of(context)!.welcomeTo, | ||
welcomeToStyle: Theme.of(context).textTheme.headlineLarge?.copyWith( | ||
color: LinagoraSysColors.material().onSurfaceVariant, | ||
), | ||
descriptionWelcomeTo: L10n.of(context)!.descriptionWelcomeTo, | ||
descriptionWelcomeToStyle: | ||
Theme.of(context).textTheme.bodyLarge?.copyWith( | ||
color: LinagoraSysColors.material().onSurfaceVariant, | ||
), | ||
titleStartMessaging: L10n.of(context)!.startMessaging, | ||
titleStartMessagingStyle: Theme.of(context).textTheme.bodyLarge?.copyWith( | ||
color: LinagoraSysColors.material().onPrimary, | ||
), | ||
titlePrivacy: L10n.of(context)!.privacy, | ||
privacyTextStyle: Theme.of(context).textTheme.bodyLarge?.copyWith( | ||
color: LinagoraSysColors.material().primary, | ||
), | ||
focusColor: Colors.transparent, | ||
hoverColor: Colors.transparent, | ||
highlightColor: Colors.transparent, | ||
overlayColor: MaterialStateProperty.all(Colors.transparent), | ||
useCompanyServerTitle: L10n.of(context)!.useYourCompanyServer, | ||
description: L10n.of(context)!.descriptionTwakeId, | ||
onUseCompanyServerOnTap: controller.goToHomeserverPicker, | ||
logo: SvgPicture.asset( | ||
ImagePaths.logoTwakeWelcome, | ||
width: TwakeWelcomeViewStyle.logoWidth, | ||
height: TwakeWelcomeViewStyle.logoHeight, | ||
), | ||
buttonOnTap: controller.goToTwakeIdScreen, | ||
privacyOnTap: () => | ||
UrlLauncher(context, url: AppConfig.privacyUrl).openUrlInAppBrowser(), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class TwakeWelcomeViewStyle { | ||
static const double logoWidth = 257; | ||
static const double logoHeight = 179; | ||
|
||
static const double buttonHeight = 56; | ||
|
||
static const double buttonRadius = 100; | ||
|
||
static const EdgeInsets descriptionPadding = | ||
EdgeInsets.symmetric(horizontal: 8); | ||
|
||
static const EdgeInsets buttonPadding = EdgeInsets.only( | ||
bottom: 44, | ||
); | ||
static const double logoWidth = 225; | ||
static const double logoHeight = 147; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1453,7 +1453,7 @@ packages: | |
description: | ||
path: "." | ||
ref: master | ||
resolved-ref: f3371287c4f66e2cff23a8c5d8aaf30aa3b7bf6b | ||
resolved-ref: ea9d98ed3bab8f362a46cb0d48ff57eb1332630c | ||
url: "[email protected]:linagora/linagora-design-flutter.git" | ||
source: git | ||
version: "0.0.1" | ||
|