diff --git a/lib/modules/browse/extension/extension_detail.dart b/lib/modules/browse/extension/extension_detail.dart index dd75a7c..fdf168a 100644 --- a/lib/modules/browse/extension/extension_detail.dart +++ b/lib/modules/browse/extension/extension_detail.dart @@ -98,20 +98,6 @@ class _ExtensionDetailState extends ConsumerState { ), ], ), - if (widget.source.isNsfw!) - Container( - decoration: BoxDecoration( - color: Colors.red.withOpacity(0.7), - borderRadius: BorderRadius.circular(5)), - child: const Padding( - padding: EdgeInsets.all(8.0), - child: Text( - "NSFW (18+)", - style: TextStyle( - fontWeight: FontWeight.bold, - color: Colors.white), - ), - )), Column( children: [ Text( diff --git a/lib/modules/browse/extension/widgets/create_extension.dart b/lib/modules/browse/extension/widgets/create_extension.dart index 8de0460..76cdf63 100644 --- a/lib/modules/browse/extension/widgets/create_extension.dart +++ b/lib/modules/browse/extension/widgets/create_extension.dart @@ -14,7 +14,6 @@ class CreateExtension extends StatefulWidget { class _CreateExtensionState extends State { bool _isManga = false; - bool _isNsfw = false; String _name = ""; String _lang = ""; String _baseUrl = ""; @@ -130,13 +129,6 @@ class _CreateExtensionState extends State { ], ), ), - SwitchListTile( - title: const Text("isNsfw"), - value: _isNsfw, - onChanged: (value) => setState(() { - _isNsfw = value; - }), - ), SwitchListTile( title: const Text("isManga"), value: _isManga, @@ -171,7 +163,7 @@ class _CreateExtensionState extends State { isAdded: true, isActive: true, version: "0.0.1", - isNsfw: _isNsfw) + isNsfw: false) ..sourceCodeLanguage = _sourceCodeLanguage; source = source ..isLocal = true @@ -296,7 +288,6 @@ const mangayomiSources = [{ "iconUrl": "${source.iconUrl}", "typeSource": "${source.typeSource}", "isManga": ${source.isManga}, - "isNsfw": ${source.isNsfw}, "version": "${source.version}", "dateFormat": "", "dateFormatLocale": "", diff --git a/lib/modules/browse/extension/widgets/extension_list_tile_widget.dart b/lib/modules/browse/extension/widgets/extension_list_tile_widget.dart index 65b69f2..816fa10 100644 --- a/lib/modules/browse/extension/widgets/extension_list_tile_widget.dart +++ b/lib/modules/browse/extension/widgets/extension_list_tile_widget.dart @@ -95,33 +95,6 @@ class _ExtensionListTileWidgetState Text(widget.source.version!, style: const TextStyle(fontWeight: FontWeight.w300, fontSize: 12)), - if (widget.source.isNsfw!) - Row( - children: [ - const SizedBox( - width: 2, - ), - SizedBox( - height: 15, - child: Container( - decoration: BoxDecoration( - color: Colors.red.withOpacity(0.7), - borderRadius: BorderRadius.circular(5)), - child: const Center( - child: Padding( - padding: EdgeInsets.all(3), - child: Text( - "NSFW", - style: TextStyle( - fontSize: 6, - fontWeight: FontWeight.bold, - color: Colors.white), - ), - ), - )), - ), - ], - ), if (widget.source.isObsolete ?? false) Padding( padding: const EdgeInsets.symmetric(horizontal: 4), diff --git a/lib/modules/browse/sources/widgets/source_list_tile.dart b/lib/modules/browse/sources/widgets/source_list_tile.dart index f8ab27e..5cded25 100644 --- a/lib/modules/browse/sources/widgets/source_list_tile.dart +++ b/lib/modules/browse/sources/widgets/source_list_tile.dart @@ -62,33 +62,6 @@ class SourceListTile extends StatelessWidget { completeLanguageName(source.lang!.toLowerCase()), style: const TextStyle(fontWeight: FontWeight.w300, fontSize: 12), ), - if (source.isNsfw!) - Row( - children: [ - const SizedBox( - width: 2, - ), - SizedBox( - height: 15, - child: Container( - decoration: BoxDecoration( - color: Colors.red.withOpacity(0.7), - borderRadius: BorderRadius.circular(5)), - child: const Center( - child: Padding( - padding: EdgeInsets.all(3), - child: Text( - "NSFW", - style: TextStyle( - fontSize: 6, - fontWeight: FontWeight.bold, - color: Colors.white), - ), - ), - )), - ), - ], - ), ], ), title: Text(source.name!),