clean up localization
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:fcs/domain/entities/custom.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/localization/app_translations.dart';
|
||||
import 'package:fcs/pages/main/util.dart';
|
||||
import 'package:fcs/pages/widgets/input_text.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
@@ -38,6 +39,14 @@ class _CustomEditorState extends State<CustomEditor> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final productBox = InputText(
|
||||
labelTextKey: 'rate.cutom.product_type',
|
||||
iconData: FontAwesomeIcons.weightHanging,
|
||||
controller: _productController);
|
||||
final feeBox = InputText(
|
||||
labelTextKey: 'rate.custom.fee',
|
||||
iconData: Icons.attach_money,
|
||||
controller: _feeController);
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: Scaffold(
|
||||
@@ -50,7 +59,8 @@ class _CustomEditorState extends State<CustomEditor> {
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
backgroundColor: primaryColor,
|
||||
title: Text(AppTranslations.of(context).text("custom.form.title")),
|
||||
title:
|
||||
Text(AppTranslations.of(context).text("rate.custom.form.title")),
|
||||
),
|
||||
body: Container(
|
||||
padding: EdgeInsets.all(18),
|
||||
@@ -59,10 +69,8 @@ class _CustomEditorState extends State<CustomEditor> {
|
||||
Expanded(
|
||||
child: ListView(
|
||||
children: <Widget>[
|
||||
fcsInput("Procut Type", FontAwesomeIcons.weightHanging,
|
||||
controller: _productController),
|
||||
fcsInput("Fee", Icons.attach_money,
|
||||
controller: _feeController),
|
||||
productBox,
|
||||
feeBox,
|
||||
SizedBox(height: 30),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user