Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 4533 - new twitter logo and label #4539

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions packages/smooth_app/assets/preferences/twitter-bird.svg

This file was deleted.

3 changes: 3 additions & 0 deletions packages/smooth_app/assets/preferences/x-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@
"connect_with_us": "Connect with us",
"instagram": "Instagram",
"instagram_link": "https://instagram.com/open.food.facts",
"twitter": "Twitter",
"twitter": "X (formerly Twitter)",
"twitter_link": "https://www.twitter.com/openfoodfacts",
"blog": "Blog",
"faq": "FAQ",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:ui' as ui;

import 'package:device_info_plus/device_info_plus.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -64,8 +66,12 @@ class UserPreferencesConnect extends AbstractUserPreferences {
title: appLocalizations.twitter,
url: appLocalizations.twitter_link,
leading: SvgPicture.asset(
'assets/preferences/twitter-bird.svg',
'assets/preferences/x-logo.svg',
width: DEFAULT_ICON_SIZE,
colorFilter: ui.ColorFilter.mode(
Theme.of(context).colorScheme.onBackground,
ui.BlendMode.srcIn,
),
package: AppHelper.APP_PACKAGE,
),
),
Expand Down