@@ -100,7 +100,7 @@ class BangumiPage extends StatelessWidget {
100
100
),
101
101
materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
102
102
color: theme.backgroundColor,
103
- minWidth: 28 .0 ,
103
+ minWidth: 32 .0 ,
104
104
padding: EdgeInsets .zero,
105
105
shape: circleShape,
106
106
),
@@ -465,6 +465,8 @@ class BangumiPage extends StatelessWidget {
465
465
) {
466
466
final Color accentTextColor =
467
467
theme.accentColor.isDark ? Colors .white : Colors .black;
468
+ final Color primaryTextColor =
469
+ theme.primaryColor.isDark ? Colors .white : Colors .black;
468
470
return Stack (
469
471
fit: StackFit .loose,
470
472
children: [
@@ -496,6 +498,34 @@ class BangumiPage extends StatelessWidget {
496
498
children: [
497
499
_buildCover (cover, model),
498
500
spacer,
501
+ MaterialButton (
502
+ onPressed: () {
503
+ model.bangumiDetail? .shareString.share ();
504
+ },
505
+ child: Container (
506
+ width: 42.0 ,
507
+ height: 42.0 ,
508
+ decoration: BoxDecoration (
509
+ gradient: LinearGradient (
510
+ colors: [
511
+ theme.accentColor.withOpacity (0.78 ),
512
+ theme.accentColor,
513
+ ],
514
+ ),
515
+ borderRadius: borderRadius24,
516
+ ),
517
+ child: Icon (
518
+ FluentIcons .share_24_regular,
519
+ color: accentTextColor,
520
+ ),
521
+ ),
522
+ materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
523
+ minWidth: 0 ,
524
+ color: accentTextColor,
525
+ padding: EdgeInsets .zero,
526
+ shape: circleShape,
527
+ ),
528
+ sizedBoxW16,
499
529
MaterialButton (
500
530
onPressed: () {
501
531
model.changeSubscribe ();
@@ -506,8 +536,8 @@ class BangumiPage extends StatelessWidget {
506
536
decoration: BoxDecoration (
507
537
gradient: LinearGradient (
508
538
colors: [
509
- theme.accentColor .withOpacity (0.78 ),
510
- theme.accentColor ,
539
+ theme.primaryColor .withOpacity (0.78 ),
540
+ theme.primaryColor ,
511
541
],
512
542
),
513
543
borderRadius: borderRadius24,
@@ -521,16 +551,14 @@ class BangumiPage extends StatelessWidget {
521
551
subscribed
522
552
? FluentIcons .heart_24_filled
523
553
: FluentIcons .heart_24_regular,
524
- color: theme.accentColor.isDark
525
- ? Colors .white
526
- : Colors .black,
554
+ color: primaryTextColor,
527
555
);
528
556
},
529
557
),
530
558
),
531
559
materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
532
560
minWidth: 0 ,
533
- color: accentTextColor ,
561
+ color: primaryTextColor ,
534
562
padding: EdgeInsets .zero,
535
563
shape: circleShape,
536
564
),
0 commit comments