@@ -6,6 +6,7 @@ import 'package:git_touch/models/theme.dart';
6
6
import 'package:git_touch/scaffolds/common.dart' ;
7
7
import 'package:git_touch/utils/utils.dart' ;
8
8
import 'package:provider/provider.dart' ;
9
+ import 'package:flutter_gen/gen_l10n/S.dart' ;
9
10
10
11
class GlIssueFormScreen extends StatefulWidget {
11
12
final int id;
@@ -24,14 +25,14 @@ class _GlIssueFormScreenState extends State<GlIssueFormScreen> {
24
25
final theme = Provider .of <ThemeModel >(context);
25
26
final auth = Provider .of <AuthModel >(context);
26
27
return CommonScaffold (
27
- title: Text ('Submit an issue' ),
28
+ title: Text (AppLocalizations . of (context) ! .submitAnIssue ),
28
29
body: Column (
29
30
children: < Widget > [
30
31
Padding (
31
32
padding: CommonStyle .padding,
32
33
child: CupertinoTextField (
33
34
style: TextStyle (color: theme.palette.text),
34
- placeholder: 'Title' ,
35
+ placeholder: AppLocalizations . of (context) ! .title ,
35
36
onChanged: (v) {
36
37
setState (() {
37
38
_title = v;
@@ -43,7 +44,7 @@ class _GlIssueFormScreenState extends State<GlIssueFormScreen> {
43
44
padding: CommonStyle .padding,
44
45
child: CupertinoTextField (
45
46
style: TextStyle (color: theme.palette.text),
46
- placeholder: 'Body' ,
47
+ placeholder: AppLocalizations . of (context) ! .body ,
47
48
onChanged: (v) {
48
49
setState (() {
49
50
_body = v;
@@ -53,7 +54,7 @@ class _GlIssueFormScreenState extends State<GlIssueFormScreen> {
53
54
),
54
55
),
55
56
CupertinoButton .filled (
56
- child: Text ('Submit' ),
57
+ child: Text (AppLocalizations . of (context) ! .submit ),
57
58
onPressed: () async {
58
59
final res = await auth.fetchGitlab (
59
60
'/projects/${widget .id }/issues' ,
0 commit comments