Feat: Show toast when copying title
This commit is contained in:
@@ -51,7 +51,8 @@
|
|||||||
"volumesOwned": "Volumes owned",
|
"volumesOwned": "Volumes owned",
|
||||||
"mal": "MAL",
|
"mal": "MAL",
|
||||||
"details": {
|
"details": {
|
||||||
"titleJa": "Japanese Title"
|
"titleJa": "Japanese Title",
|
||||||
|
"textCopied": "Text copied to clipboard"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"calendar": {
|
"calendar": {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import 'package:anitrack/src/ui/widgets/integer_input.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
import 'package:get_it/get_it.dart';
|
import 'package:get_it/get_it.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
@@ -189,6 +190,12 @@ class DetailsPage extends StatelessWidget {
|
|||||||
.title,
|
.title,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
await Fluttertoast.showToast(
|
||||||
|
msg: t
|
||||||
|
.details
|
||||||
|
.details
|
||||||
|
.textCopied,
|
||||||
|
);
|
||||||
},
|
},
|
||||||
icon:
|
icon:
|
||||||
const Icon(
|
const Icon(
|
||||||
|
|||||||
Reference in New Issue
Block a user