upgraded pub packages
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:refilc/ui/widgets/grade/grade_tile.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:i18n_extension/i18n_widget.dart';
|
||||
import 'package:i18n_extension/i18n_extension.dart';
|
||||
|
||||
class AverageDisplay extends StatelessWidget {
|
||||
const AverageDisplay({super.key, this.average = 0.0, this.border = false});
|
||||
|
||||
@@ -62,11 +62,11 @@ Future<T?> showRoundedModalBottomSheet<T>(
|
||||
builder: (context) => RoundedBottomSheet(child: child));
|
||||
}
|
||||
|
||||
PersistentBottomSheetController<T> showRoundedBottomSheet<T>(
|
||||
PersistentBottomSheetController showRoundedBottomSheet(
|
||||
BuildContext context, {
|
||||
required Widget child,
|
||||
}) {
|
||||
return showBottomSheet<T>(
|
||||
return showBottomSheet(
|
||||
context: context,
|
||||
backgroundColor: const Color(0x00000000),
|
||||
elevation: 12.0,
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:i18n_extension/i18n_widget.dart';
|
||||
import 'package:i18n_extension/i18n_extension.dart';
|
||||
|
||||
class TrendDisplay<T extends num> extends StatelessWidget {
|
||||
const TrendDisplay({super.key, required this.current, required this.previous, this.padding});
|
||||
const TrendDisplay(
|
||||
{super.key, required this.current, required this.previous, this.padding});
|
||||
|
||||
final T current;
|
||||
final T previous;
|
||||
@@ -26,7 +27,11 @@ class TrendDisplay<T extends num> extends StatelessWidget {
|
||||
percentage = 0.0;
|
||||
}
|
||||
|
||||
final String percentageText = percentage.abs().toStringAsFixed(1).replaceAll('.', I18n.of(context).locale.languageCode != 'en' ? ',' : '.');
|
||||
final String percentageText = percentage
|
||||
.abs()
|
||||
.toStringAsFixed(1)
|
||||
.replaceAll(
|
||||
'.', I18n.of(context).locale.languageCode != 'en' ? ',' : '.');
|
||||
|
||||
if (!percentage.isNegative) {
|
||||
color = upColor;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'package:refilc/helpers/average_helper.dart';
|
||||
import 'package:i18n_extension/i18n_widget.dart';
|
||||
import 'package:i18n_extension/i18n_extension.dart';
|
||||
import 'package:refilc_kreta_api/models/grade.dart';
|
||||
import 'package:refilc_mobile_ui/common/widgets/cretification/certification_view.dart';
|
||||
import 'package:refilc/ui/widgets/grade/grade_tile.dart';
|
||||
|
||||
@@ -42,11 +42,17 @@ class EventView extends StatelessWidget {
|
||||
text: event.content.escapeHtml(),
|
||||
options: const LinkifyOptions(looseUrl: true, removeWww: true),
|
||||
onOpen: (link) {
|
||||
launch(link.url,
|
||||
customTabsOption: CustomTabsOption(
|
||||
toolbarColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
showPageTitle: true,
|
||||
));
|
||||
launchUrl(
|
||||
Uri.parse(link.url),
|
||||
customTabsOptions: CustomTabsOptions(
|
||||
showTitle: true,
|
||||
colorSchemes: CustomTabsColorSchemes(
|
||||
defaultPrams: CustomTabsColorSchemeParams(
|
||||
toolbarColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
style: const TextStyle(fontWeight: FontWeight.w400),
|
||||
),
|
||||
|
||||
@@ -85,11 +85,17 @@ class HomeworkView extends StatelessWidget {
|
||||
text: homework.content.escapeHtml(),
|
||||
options: const LinkifyOptions(looseUrl: true, removeWww: true),
|
||||
onOpen: (link) {
|
||||
launch(link.url,
|
||||
customTabsOption: CustomTabsOption(
|
||||
toolbarColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
showPageTitle: true,
|
||||
));
|
||||
launchUrl(
|
||||
Uri.parse(link.url),
|
||||
customTabsOptions: CustomTabsOptions(
|
||||
showTitle: true,
|
||||
colorSchemes: CustomTabsColorSchemes(
|
||||
defaultPrams: CustomTabsColorSchemeParams(
|
||||
toolbarColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
style: const TextStyle(fontWeight: FontWeight.w400),
|
||||
),
|
||||
|
||||
@@ -10,7 +10,7 @@ import 'package:flutter_custom_tabs/flutter_custom_tabs.dart';
|
||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
// import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||
import 'package:flutter_linkify/flutter_linkify.dart';
|
||||
import 'package:i18n_extension/i18n_widget.dart';
|
||||
import 'package:i18n_extension/i18n_extension.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
@@ -169,11 +169,17 @@ class MessageViewTile extends StatelessWidget {
|
||||
text: message.content.escapeHtml(),
|
||||
options: const LinkifyOptions(looseUrl: true, removeWww: true),
|
||||
onOpen: (link) {
|
||||
launch(link.url,
|
||||
customTabsOption: CustomTabsOption(
|
||||
toolbarColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
showPageTitle: true,
|
||||
));
|
||||
launchUrl(
|
||||
Uri.parse(link.url),
|
||||
customTabsOptions: CustomTabsOptions(
|
||||
showTitle: true,
|
||||
colorSchemes: CustomTabsColorSchemes(
|
||||
defaultPrams: CustomTabsColorSchemeParams(
|
||||
toolbarColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
style: const TextStyle(fontWeight: FontWeight.w400),
|
||||
),
|
||||
|
||||
@@ -67,11 +67,18 @@ class NoteView extends StatelessWidget {
|
||||
text: note.content.escapeHtml(),
|
||||
options: const LinkifyOptions(looseUrl: true, removeWww: true),
|
||||
onOpen: (link) {
|
||||
launch(link.url,
|
||||
customTabsOption: CustomTabsOption(
|
||||
toolbarColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
showPageTitle: true,
|
||||
));
|
||||
launchUrl(
|
||||
Uri.parse(link.url),
|
||||
customTabsOptions: CustomTabsOptions(
|
||||
showTitle: true,
|
||||
colorSchemes: CustomTabsColorSchemes(
|
||||
defaultPrams: CustomTabsColorSchemeParams(
|
||||
toolbarColor:
|
||||
Theme.of(context).scaffoldBackgroundColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
style: const TextStyle(fontWeight: FontWeight.w400),
|
||||
),
|
||||
|
||||
@@ -2,7 +2,7 @@ import 'package:auto_size_text/auto_size_text.dart';
|
||||
import 'package:refilc/models/settings.dart';
|
||||
import 'package:refilc/ui/widgets/grade/grade_tile.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:i18n_extension/i18n_widget.dart';
|
||||
import 'package:i18n_extension/i18n_extension.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class StatisticsTile extends StatelessWidget {
|
||||
|
||||
@@ -82,7 +82,8 @@ class UpdateViewState extends State<UpdateView> {
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
physics: const BouncingScrollPhysics(),
|
||||
data: widget.release.body,
|
||||
onTapLink: (text, href, title) => launch(href ?? ""),
|
||||
onTapLink: (text, href, title) =>
|
||||
launchUrl(Uri.parse(href ?? "")),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user