@@ -6,6 +6,7 @@ import 'package:git_touch/models/theme.dart';
66import 'package:git_touch/scaffolds/common.dart' ;
77import 'package:git_touch/utils/utils.dart' ;
88import 'package:provider/provider.dart' ;
9+ import 'package:flutter_gen/gen_l10n/S.dart' ;
910
1011class GlIssueFormScreen extends StatefulWidget {
1112 final int id;
@@ -24,14 +25,14 @@ class _GlIssueFormScreenState extends State<GlIssueFormScreen> {
2425 final theme = Provider .of <ThemeModel >(context);
2526 final auth = Provider .of <AuthModel >(context);
2627 return CommonScaffold (
27- title: Text ('Submit an issue' ),
28+ title: Text (AppLocalizations . of (context) ! .submitAnIssue ),
2829 body: Column (
2930 children: < Widget > [
3031 Padding (
3132 padding: CommonStyle .padding,
3233 child: CupertinoTextField (
3334 style: TextStyle (color: theme.palette.text),
34- placeholder: 'Title' ,
35+ placeholder: AppLocalizations . of (context) ! .title ,
3536 onChanged: (v) {
3637 setState (() {
3738 _title = v;
@@ -43,7 +44,7 @@ class _GlIssueFormScreenState extends State<GlIssueFormScreen> {
4344 padding: CommonStyle .padding,
4445 child: CupertinoTextField (
4546 style: TextStyle (color: theme.palette.text),
46- placeholder: 'Body' ,
47+ placeholder: AppLocalizations . of (context) ! .body ,
4748 onChanged: (v) {
4849 setState (() {
4950 _body = v;
@@ -53,7 +54,7 @@ class _GlIssueFormScreenState extends State<GlIssueFormScreen> {
5354 ),
5455 ),
5556 CupertinoButton .filled (
56- child: Text ('Submit' ),
57+ child: Text (AppLocalizations . of (context) ! .submit ),
5758 onPressed: () async {
5859 final res = await auth.fetchGitlab (
5960 '/projects/${widget .id }/issues' ,
0 commit comments