mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-14 23:19:30 +00:00
chore: remove deprecated apis (#74)
* dart format + remove withopacity * remove unused imports
This commit is contained in:
parent
4af16ac5b4
commit
4ebf46d2fd
22 changed files with 48 additions and 37 deletions
|
|
@ -68,7 +68,7 @@ class AddNewServer extends HookConsumerWidget {
|
|||
decoration: InputDecoration(
|
||||
labelText: 'Server URI',
|
||||
labelStyle: TextStyle(
|
||||
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.8),
|
||||
color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.8),
|
||||
),
|
||||
border: const OutlineInputBorder(),
|
||||
prefixText:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ import 'package:go_router/go_router.dart';
|
|||
import 'package:vaani/features/you/view/server_manager.dart';
|
||||
import 'package:vaani/router/router.dart';
|
||||
|
||||
|
||||
class MyDrawer extends StatelessWidget {
|
||||
const MyDrawer({
|
||||
super.key,
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class ExpandableDescription extends HookWidget {
|
|||
// header with carrot icon is tapable
|
||||
InkWell(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
|
||||
|
||||
onTap: () {
|
||||
isDescExpanded.value = !isDescExpanded.value;
|
||||
if (isDescExpanded.value) {
|
||||
|
|
|
|||
|
|
@ -255,8 +255,10 @@ class _BookOnShelfPlayButton extends HookConsumerWidget {
|
|||
child: CircularProgressIndicator(
|
||||
value: userProgress.progress,
|
||||
strokeWidth: strokeWidth,
|
||||
backgroundColor:
|
||||
Theme.of(context).colorScheme.onPrimary.withOpacity(0.8),
|
||||
backgroundColor: Theme.of(context)
|
||||
.colorScheme
|
||||
.onPrimary
|
||||
.withValues(alpha: 0.8),
|
||||
valueColor: AlwaysStoppedAnimation<Color>(
|
||||
Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
|
|
@ -274,7 +276,10 @@ class _BookOnShelfPlayButton extends HookConsumerWidget {
|
|||
const Size(size, size),
|
||||
),
|
||||
backgroundColor: WidgetStateProperty.all(
|
||||
Theme.of(context).colorScheme.onPrimary.withOpacity(0.9),
|
||||
Theme.of(context)
|
||||
.colorScheme
|
||||
.onPrimary
|
||||
.withValues(alpha: 0.9),
|
||||
),
|
||||
),
|
||||
onPressed: () async {
|
||||
|
|
@ -316,9 +321,10 @@ class BookCoverSkeleton extends StatelessWidget {
|
|||
child: SizedBox(
|
||||
width: 150,
|
||||
child: Shimmer.fromColors(
|
||||
baseColor: Theme.of(context).colorScheme.surface.withOpacity(0.3),
|
||||
baseColor:
|
||||
Theme.of(context).colorScheme.surface.withValues(alpha: 0.3),
|
||||
highlightColor:
|
||||
Theme.of(context).colorScheme.onSurface.withOpacity(0.1),
|
||||
Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.1),
|
||||
child: Container(
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue