Skip to content

Commit

Permalink
Added Sina to about us and changed dialogs text style
Browse files Browse the repository at this point in the history
  • Loading branch information
reza00farjam committed Jan 23, 2024
1 parent 595c5b6 commit f7ac776
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 101 deletions.
1 change: 1 addition & 0 deletions lib/app/constants/links.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class ArchiveLinks {
static const linkedinAmirR = 'https://linkedin.com/in/amirreza-ektesabi';
static const linkedinAmirH = 'https://linkedin.com/in/amirhossein-roodaki';
static const linkedinSetia = 'https://linkedin.com/in/setia-kamali-78958223a';
static const linkedinSina = 'https://linkedin.com/in/sinahz';

static const email = '[email protected]';
static const telegramBot = 'https://t.me/CSE_Archive_Bot';
Expand Down
3 changes: 2 additions & 1 deletion lib/app/constants/strings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ class ArchiveStrings {
static const aboutDescriptionP3 =
'هدف ما اینه که دانشجوها بتونن به راحتی منابع مورد نیاز خودشون رو پیدا کنن و از اونا برای یادگیری و موفقیت توی دوره‌ی تحصیلات کارشناسی‌شون استفاده کنن.';
static const aboutMembersAnnounce =
'هسته اصلی تیم که جمع‌آوری و مرتب‌سازی منابع طی این سال‌ها رو برعهده داشته از چهار دانشجوی بخش مهندسی کامپیوتر تشکیل شده:';
'اعضای تیم که جمع‌آوری و مرتب‌سازی منابع طی این سال‌ها رو برعهده داشتن از پنچ دانشجوی بخش مهندسی کامپیوتر تشکیل شده:';
static const aboutMemberReza = 'رضا فرجام (ورودی ۹۸)';
static const aboutMemberAmirR = 'امیررضا اکتسابی (ورودی ۹۸)';
static const aboutMemberAmirH = 'امیرحسین رودکی (ورودی ۹۹)';
static const aboutMemberSetia = 'ستیا کمالی (ورودی ۱۴۰۰)';
static const aboutMemberSina = 'سینا حکیم‌زاده (ورودی ۱۴۰۱)';

static const contact = 'ارتباط با ما';
static const contactDescriptionP1 =
Expand Down
8 changes: 4 additions & 4 deletions lib/app/utils/show_support_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ void showSupportDialog({required BuildContext context}) {
showDialog(
context: context,
builder: (context) {
final textStyle = context.bodyMedium.copyWith(
final textStyle = context.bodyLarge.copyWith(
color: context.secondaryColor.withOpacity(0.9),
fontWeight: FontWeight.w300,
);

final titleStyle = context.bodyMedium.copyWith(
final titleStyle = context.bodyLarge.copyWith(
fontWeight: FontWeight.w500,
);

Expand Down Expand Up @@ -60,7 +60,7 @@ void showSupportDialog({required BuildContext context}) {
cursor: SystemMouseCursors.click,
child: Text(
ArchiveStrings.supportDonateDescriptionLink,
style: TextStyle(
style: textStyle.copyWith(
fontWeight: FontWeight.w500,
decoration: TextDecoration.underline,
decorationColor:
Expand Down Expand Up @@ -113,7 +113,7 @@ void showSupportDialog({required BuildContext context}) {
cursor: SystemMouseCursors.click,
child: Text(
ArchiveStrings.supportOtherCase1Repos,
style: TextStyle(
style: textStyle.copyWith(
fontWeight: FontWeight.w500,
decoration: TextDecoration.underline,
decorationColor:
Expand Down
4 changes: 2 additions & 2 deletions lib/app/views/chart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ class ChartView extends GetView<ChartController> {
}

Widget _getHelpDialog(BuildContext context) {
final textStyle = context.bodyMedium.copyWith(
final textStyle = context.bodyLarge.copyWith(
color: context.secondaryColor.withOpacity(0.9),
fontWeight: FontWeight.w300,
);

final titleStyle = context.bodyMedium.copyWith(
final titleStyle = context.bodyLarge.copyWith(
fontWeight: FontWeight.w500,
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void showAboutUsDialog({required BuildContext context}) {
showDialog(
context: context,
builder: (context) {
final textStyle = context.bodyMedium.copyWith(
final textStyle = context.bodyLarge.copyWith(
color: context.secondaryColor.withOpacity(0.9),
fontWeight: FontWeight.w300,
);
Expand Down Expand Up @@ -41,6 +41,12 @@ void showAboutUsDialog({required BuildContext context}) {
style: textStyle,
),
const Gap.vertical(kSizeDefault / 2),
_memberBulletText(
context: context,
text: ArchiveStrings.aboutMemberSina,
url: ArchiveLinks.linkedinSina,
),
const Gap.vertical(kSizeDefault / 4),
_memberBulletText(
context: context,
text: ArchiveStrings.aboutMemberSetia,
Expand Down Expand Up @@ -77,7 +83,6 @@ BulletText _memberBulletText({
}) {
return BulletText(
richText: Text.rich(
style: context.bodyMedium.copyWith(fontWeight: FontWeight.w500),
WidgetSpan(
child: Link(
uri: Uri.parse(url),
Expand All @@ -88,7 +93,7 @@ BulletText _memberBulletText({
cursor: SystemMouseCursors.click,
child: Text(
text,
style: TextStyle(
style: context.bodyLarge.copyWith(
fontWeight: FontWeight.w500,
decoration: TextDecoration.underline,
decorationColor: context.secondaryColor.withOpacity(0.4),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ void showContactUsDialog({required BuildContext context}) {
showDialog(
context: context,
builder: (context) {
final textStyle = context.bodyMedium.copyWith(
final textStyle = context.bodyLarge.copyWith(
color: context.secondaryColor.withOpacity(0.9),
fontWeight: FontWeight.w300,
);

final linkStyle = context.bodyMedium.copyWith(
final linkStyle = context.bodyLarge.copyWith(
fontWeight: FontWeight.w500,
decoration: TextDecoration.underline,
decorationColor: context.secondaryColor.withOpacity(0.5),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ void showDisclaimerDialog({required BuildContext context}) {
showDialog(
context: context,
builder: (context) {
final textStyle = context.bodyMedium.copyWith(
final textStyle = context.bodyLarge.copyWith(
color: context.secondaryColor.withOpacity(0.9),
fontWeight: FontWeight.w300,
);

final titleStyle = context.bodyMedium.copyWith(
final titleStyle = context.bodyLarge.copyWith(
fontWeight: FontWeight.w500,
);

Expand Down
2 changes: 1 addition & 1 deletion macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import shared_preferences_foundation
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
RivePlugin.register(with: registry.registrar(forPlugin: "RivePlugin"))
SentryFlutterPlugin.register(with: registry.registrar(forPlugin: "SentryFlutterPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
Expand Down
Loading

0 comments on commit f7ac776

Please sign in to comment.