This commit is contained in:
kodjomoustapha 2024-04-19 09:58:04 +01:00
parent 4be67ac94f
commit a665cd4ba4
28 changed files with 89 additions and 89 deletions

View file

@ -898,7 +898,7 @@ class _AnimeStreamPageState extends riv.ConsumerState<AnimeStreamPage>
child: ListTile(
dense: true,
title: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: Text(
widget.episode.manga.value!.name!,
style: const TextStyle(
@ -907,7 +907,7 @@ class _AnimeStreamPageState extends riv.ConsumerState<AnimeStreamPage>
),
),
subtitle: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: Text(
widget.episode.name!,
style: TextStyle(
@ -941,7 +941,7 @@ class _AnimeStreamPageState extends riv.ConsumerState<AnimeStreamPage>
// scrollable: true,
// title: Text("Player Settings"),
// content: SizedBox(
// width: context.mediaWidth(0.8),
// width: context.width(0.8),
// child: Column(
// crossAxisAlignment:
// CrossAxisAlignment.start,
@ -991,8 +991,8 @@ class _AnimeStreamPageState extends riv.ConsumerState<AnimeStreamPage>
if (mounted) {
_key.currentState?.update(
fit: fit,
width: context.mediaWidth(1),
height: context.mediaHeight(1));
width: context.width(1),
height: context.height(1));
}
}
@ -1033,8 +1033,8 @@ class _AnimeStreamPageState extends riv.ConsumerState<AnimeStreamPage>
streamController: _streamController,
),
controller: _controller,
width: context.mediaWidth(1),
height: context.mediaHeight(1),
width: context.width(1),
height: context.height(1),
resumeUponEnteringForegroundMode: true,
),
Positioned(

View file

@ -422,7 +422,7 @@ class _CodeEditorState extends ConsumerState<CodeEditor> {
borderRadius: BorderRadius.circular(5),
color: Colors.black,
),
width: context.mediaWidth(1),
width: context.width(1),
height: 200,
child: ValueListenableBuilder(
valueListenable: _logsNotifier,

View file

@ -132,7 +132,7 @@ class _ExtensionDetailState extends ConsumerState<ExtensionDetail> {
Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
child: ElevatedButton(
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.all(0),
@ -173,7 +173,7 @@ class _ExtensionDetailState extends ConsumerState<ExtensionDetail> {
Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
child: ElevatedButton(
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.all(0),

View file

@ -93,7 +93,7 @@ class _SourcePreferenceWidgetState extends State<SourcePreferenceWidget> {
builder: (context) => AlertDialog(
title: Text(pref.title!),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: pref.entries!.length,
@ -155,7 +155,7 @@ class _SourcePreferenceWidgetState extends State<SourcePreferenceWidget> {
return AlertDialog(
title: Text(pref.title!),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: pref.entries!.length,

View file

@ -482,7 +482,7 @@ class _LibraryScreenState extends ConsumerState<LibraryScreen>
topRight: Radius.circular(20))),
duration: const Duration(milliseconds: 100),
height: isLongPressed ? 70 : 0,
width: context.mediaWidth(1),
width: context.width(1),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
@ -952,7 +952,7 @@ class _LibraryScreenState extends ConsumerState<LibraryScreen>
l10n.set_categories,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: Builder(builder: (context) {
if (snapshot.hasData && snapshot.data!.isNotEmpty) {
final entries = snapshot.data!;
@ -1088,7 +1088,7 @@ class _LibraryScreenState extends ConsumerState<LibraryScreen>
),
content: SizedBox(
height: 100,
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: Column(
children: [
ListTileChapterFilter(
@ -1840,8 +1840,8 @@ _importLocal(BuildContext context, bool isManga) {
),
if (isLoading)
Container(
width: context.mediaWidth(1),
height: context.mediaHeight(1),
width: context.width(1),
height: context.height(1),
color: Colors.transparent,
child: UnconstrainedBox(
child: Container(

View file

@ -189,7 +189,7 @@ class MainScreen extends ConsumerWidget {
? null
: AnimatedContainer(
duration: const Duration(milliseconds: 0),
width: context.mediaWidth(1),
width: context.width(1),
height: switch (isLongPressed) {
true => 0,
_ => switch (location) {

View file

@ -232,7 +232,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
widget.manga!.customCoverImage != null
? Image.memory(
widget.manga!.customCoverImage as Uint8List,
width: context.mediaWidth(1),
width: context.width(1),
height: 300,
fit: BoxFit.cover)
: cachedNetworkImage(
@ -244,7 +244,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
imageUrl: toImgUrl(
widget.manga!.customCoverFromTracker ??
widget.manga!.imageUrl!),
width: context.mediaWidth(1),
width: context.width(1),
height: 300,
fit: BoxFit.cover),
Stack(
@ -252,7 +252,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
Column(
children: [
Container(
width: context.mediaWidth(1),
width: context.width(1),
height: AppBar().preferredSize.height,
color: context.isTablet
? Theme.of(context)
@ -262,7 +262,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
.withOpacity(0.9),
),
Container(
width: context.mediaWidth(1),
width: context.width(1),
height: 465,
color: context.isTablet
? Theme.of(context)
@ -276,7 +276,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
Positioned(
bottom: 0,
child: Container(
width: context.mediaWidth(1),
width: context.width(1),
height: 100,
color: Theme.of(context)
.scaffoldBackgroundColor),
@ -531,8 +531,8 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
children: [
if (context.isTablet)
SizedBox(
width: context.mediaWidth(0.5),
height: context.mediaHeight(1),
width: context.width(0.5),
height: context.height(1),
child: SingleChildScrollView(
child: _bodyContainer(
chapterLength: chapters.length))),
@ -560,7 +560,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
children: [
Container(
height: chapters.isEmpty
? context.mediaHeight(1)
? context.height(1)
: null,
color: Theme.of(context)
.scaffoldBackgroundColor,
@ -656,7 +656,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
topRight: Radius.circular(20))),
duration: const Duration(milliseconds: 100),
height: isLongPressed ? 70 : 0,
width: context.mediaWidth(1),
width: context.width(1),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
@ -980,7 +980,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
l10n.filter_scanlator_groups,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: scanlators.$1.length,
@ -1182,7 +1182,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
Stack(
children: [
SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
child: Row(
children: [
_coverCard(),
@ -1353,8 +1353,8 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
),
if (chapterLength == 0)
Container(
width: context.mediaWidth(1),
height: context.mediaHeight(1),
width: context.width(1),
height: context.height(1),
color: Theme.of(context).scaffoldBackgroundColor)
],
),
@ -1645,7 +1645,7 @@ class _MangaDetailViewState extends ConsumerState<MangaDetailView>
),
),
SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [

View file

@ -239,7 +239,7 @@ class _MangaDetailsViewState extends ConsumerState<MangaDetailsView> {
l10n.set_categories,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: StreamBuilder(
stream: isar.categorys
.filter()

View file

@ -55,7 +55,7 @@ class ReadMoreWidgetState extends State<ReadMoreWidget>
right: 0,
left: 0,
child: Container(
width: context.mediaWidth(1),
width: context.width(1),
height: 30,
decoration: BoxDecoration(
color: Theme.of(context).scaffoldBackgroundColor,
@ -78,7 +78,7 @@ class ReadMoreWidgetState extends State<ReadMoreWidget>
),
if (expanded)
SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
height: 20,
child: const Icon(Icons.keyboard_arrow_up_sharp),
)

View file

@ -55,7 +55,7 @@ class _TrackerWidgetSearchState extends ConsumerState<TrackerWidgetSearch> {
: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: SizedBox(
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: Column(
children: [
Flexible(
@ -97,7 +97,7 @@ class _TrackerWidgetSearchState extends ConsumerState<TrackerWidgetSearch> {
CrossAxisAlignment.start,
children: [
SizedBox(
width: context.mediaWidth(0.6),
width: context.width(0.6),
child: Text(
tracks![index].title!,
style: const TextStyle(

View file

@ -147,7 +147,7 @@ class _TrackerWidgetState extends ConsumerState<TrackerWidget> {
l10n!.status,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: ref

View file

@ -299,7 +299,7 @@ class _MangaHomeScreenState extends ConsumerState<MangaHomeScreen> {
child: Column(
children: [
SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
height: 45,
child: ListView.builder(
scrollDirection: Axis.horizontal,
@ -409,7 +409,7 @@ class _MangaHomeScreenState extends ConsumerState<MangaHomeScreen> {
Container(
color: context.primaryColor,
height: 0.3,
width: context.mediaWidth(1),
width: context.width(1),
)
],
),

View file

@ -105,7 +105,7 @@ class FilterWidget extends StatelessWidget {
);
} else if (filterState is SelectFilter) {
widget = SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [

View file

@ -143,7 +143,7 @@ class _DoubleColummViewState extends State<DoubleColummView>
: 0;
return Container(
color: getBackgroundColor(widget.backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: CircularProgressIndicatorAnimateRotate(
progress: progress),
);
@ -159,7 +159,7 @@ class _DoubleColummViewState extends State<DoubleColummView>
return Container(
color:
getBackgroundColor(widget.backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
@ -222,7 +222,7 @@ class _DoubleColummViewState extends State<DoubleColummView>
: 0;
return Container(
color: getBackgroundColor(widget.backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: CircularProgressIndicatorAnimateRotate(
progress: progress),
);
@ -238,7 +238,7 @@ class _DoubleColummViewState extends State<DoubleColummView>
return Container(
color:
getBackgroundColor(widget.backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [

View file

@ -52,7 +52,7 @@ class DoubleColummVerticalView extends StatelessWidget {
: 0;
return Container(
color: getBackgroundColor(backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: CircularProgressIndicatorAnimateRotate(
progress: progress),
);
@ -65,7 +65,7 @@ class DoubleColummVerticalView extends StatelessWidget {
isFailedToLoadImage(true);
return Container(
color: getBackgroundColor(backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
@ -124,7 +124,7 @@ class DoubleColummVerticalView extends StatelessWidget {
: 0;
return Container(
color: getBackgroundColor(backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: CircularProgressIndicatorAnimateRotate(
progress: progress),
);
@ -137,7 +137,7 @@ class DoubleColummVerticalView extends StatelessWidget {
isFailedToLoadImage(true);
return Container(
color: getBackgroundColor(backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [

View file

@ -73,8 +73,8 @@ class ImageViewVertical extends ConsumerWidget {
: 0;
return Container(
color: Colors.black,
height: context.mediaHeight(0.8),
width: isHorizontal ? context.mediaWidth(0.8) : null,
height: context.height(0.8),
width: isHorizontal ? context.width(0.8) : null,
child: CircularProgressIndicatorAnimateRotate(progress: progress),
);
}
@ -82,8 +82,8 @@ class ImageViewVertical extends ConsumerWidget {
failedToLoadImage(true);
return Container(
color: Colors.black,
height: context.mediaHeight(0.8),
width: isHorizontal ? context.mediaWidth(0.8) : null,
height: context.height(0.8),
width: isHorizontal ? context.width(0.8) : null,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [

View file

@ -282,7 +282,7 @@ class _MangaChapterPageGalleryState
showModalBottomSheet(
context: context,
constraints: BoxConstraints(
maxWidth: context.mediaWidth(1),
maxWidth: context.width(1),
),
builder: (context) {
return ListView(
@ -495,7 +495,7 @@ class _MangaChapterPageGalleryState
? Axis.horizontal
: Axis.vertical,
minCacheExtent: pagePreloadAmount *
context.mediaHeight(1),
context.height(1),
initialScrollIndex:
_readerController.getPageIndex(),
itemCount:
@ -669,7 +669,7 @@ class _MangaChapterPageGalleryState
return Container(
color: getBackgroundColor(
backgroundColor),
height: context.mediaHeight(0.8),
height: context.height(0.8),
child:
CircularProgressIndicatorAnimateRotate(
progress: progress),
@ -715,7 +715,7 @@ class _MangaChapterPageGalleryState
color: getBackgroundColor(
backgroundColor),
height:
context.mediaHeight(0.8),
context.height(0.8),
child: Column(
mainAxisAlignment:
MainAxisAlignment.center,
@ -1326,7 +1326,7 @@ class _MangaChapterPageGalleryState
return Positioned(
top: 0,
child: AnimatedContainer(
width: context.mediaWidth(1),
width: context.width(1),
height: height,
curve: Curves.ease,
duration: const Duration(milliseconds: 200),
@ -1344,7 +1344,7 @@ class _MangaChapterPageGalleryState
title: ListTile(
dense: true,
title: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: Text(
'${_readerController.getMangaName()} ',
style: const TextStyle(fontWeight: FontWeight.bold),
@ -1352,7 +1352,7 @@ class _MangaChapterPageGalleryState
),
),
subtitle: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: Text(
_readerController.getChapterTitle(),
style: const TextStyle(
@ -1452,7 +1452,7 @@ class _MangaChapterPageGalleryState
child: AnimatedContainer(
curve: Curves.ease,
duration: const Duration(milliseconds: 300),
width: context.mediaWidth(1),
width: context.width(1),
height: (_isView ? 130 : 0),
child: Column(
children: [
@ -1886,8 +1886,8 @@ class _MangaChapterPageGalleryState
flex: 2,
child: failedToLoadImage
? SizedBox(
width: context.mediaWidth(1),
height: context.mediaHeight(0.7),
width: context.width(1),
height: context.height(0.7),
)
: GestureDetector(
behavior: HitTestBehavior.translucent,

View file

@ -20,7 +20,7 @@ Widget btnToShowChapterListDialog(
return AlertDialog(
title: Text(title),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ChapterListWidget(chapter: chapter)),
);
});

View file

@ -43,7 +43,7 @@ class BackupAndRestore extends ConsumerWidget {
return AlertDialog(
title: Text(l10n.create_backup_dialog_title),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: list.length,
@ -123,7 +123,7 @@ class BackupAndRestore extends ConsumerWidget {
return AlertDialog(
title: Text(l10n.restore_backup),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView(
shrinkWrap: true,
children: [
@ -209,7 +209,7 @@ class BackupAndRestore extends ConsumerWidget {
return AlertDialog(
title: Text(l10n.backup_frequency),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: list.length,
@ -291,7 +291,7 @@ class BackupAndRestore extends ConsumerWidget {
l10n.backup_options_subtitle,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: list.length,

View file

@ -99,7 +99,7 @@ class AppearanceScreen extends ConsumerWidget {
l10n.app_language,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: AppLocalizations
@ -162,7 +162,7 @@ class AppearanceScreen extends ConsumerWidget {
content:
StatefulBuilder(builder: (context, setState) {
return SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: Column(
children: [
Padding(
@ -305,7 +305,7 @@ class AppearanceScreen extends ConsumerWidget {
l10n.relative_timestamp,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount:
@ -369,7 +369,7 @@ class AppearanceScreen extends ConsumerWidget {
l10n.date_format,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: dateFormatsList.length,

View file

@ -37,7 +37,7 @@ class _DownloadsScreenState extends ConsumerState<DownloadsScreen> {
return AlertDialog(
title: Text(l10n.download_location),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView(
shrinkWrap: true,
children: [

View file

@ -29,7 +29,7 @@ class GeneralScreen extends ConsumerWidget {
l10n.app_language,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount:

View file

@ -38,7 +38,7 @@ class PlayerScreen extends ConsumerWidget {
return AlertDialog(
title: Text(context.l10n.markEpisodeAsSeenSetting),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: values.length,
@ -163,7 +163,7 @@ class PlayerScreen extends ConsumerWidget {
title:
Text(context.l10n.default_skip_forward_skip_length),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: values.length,
@ -221,7 +221,7 @@ class PlayerScreen extends ConsumerWidget {
return AlertDialog(
title: Text(context.l10n.default_playback_speed_length),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: values.length,
@ -314,7 +314,7 @@ class PlayerScreen extends ConsumerWidget {
title: Text(
context.l10n.default_playback_speed_length),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: values.length,

View file

@ -36,7 +36,7 @@ class ReaderScreen extends ConsumerWidget {
return AlertDialog(
title: Text(context.l10n.default_reading_mode),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: ReaderMode.values.length,
@ -97,7 +97,7 @@ class ReaderScreen extends ConsumerWidget {
context.l10n.double_tap_animation_speed,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: 3,
@ -157,7 +157,7 @@ class ReaderScreen extends ConsumerWidget {
return AlertDialog(
title: Text(context.l10n.background_color),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: BackgroundColor.values.length,
@ -220,7 +220,7 @@ class ReaderScreen extends ConsumerWidget {
context.l10n.page_preload_amount,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: numbers.length,
@ -278,7 +278,7 @@ class ReaderScreen extends ConsumerWidget {
context.l10n.scale_type,
),
content: SizedBox(
width: context.mediaWidth(0.8),
width: context.width(0.8),
child: ListView.builder(
shrinkWrap: true,
itemCount: getScaleTypeNames(context).length,

View file

@ -55,7 +55,7 @@ class _ManageTrackersScreenState extends State<ManageTrackersScreen> {
borderRadius: BorderRadius.circular(10)),
child: trackerPref.syncId == -1
? SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
child: const Icon(Icons.local_library_rounded,
size: 60))
: Image.asset(

View file

@ -189,7 +189,7 @@ void _showDialogLogin(BuildContext context, WidgetRef ref) {
Padding(
padding: const EdgeInsets.symmetric(vertical: 10),
child: SizedBox(
width: context.mediaWidth(1),
width: context.width(1),
height: 50,
child: ElevatedButton(
onPressed: isLoading

View file

@ -41,7 +41,7 @@ Future<void> customDraggableTabBar(
final controller = DraggableMenuController();
late TabController tabBarController;
tabBarController = TabController(length: tabs.length, vsync: vsync);
final maxHeight = context.mediaHeight(0.8);
final maxHeight = context.height(0.8);
int index = 0;
List<Map<String, dynamic>> widgetsHeight = [];
@ -121,7 +121,7 @@ Future<void> customDraggableTabBar(
return Scaffold(
backgroundColor: Colors.transparent,
body: Container(
width: context.mediaWidth(1) - width,
width: context.width(1) - width,
decoration: BoxDecoration(
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(20),

View file

@ -39,11 +39,11 @@ extension BuildContextExtensions on BuildContext {
return Theme.of(this);
}
double mediaHeight(double data) {
double height(double data) {
return MediaQuery.of(this).size.height * data;
}
double mediaWidth(double data) {
double width(double data) {
return MediaQuery.of(this).size.width * data;
}