clean up localization
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:fcs/domain/entities/rate.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';
|
||||
|
||||
@@ -37,6 +38,14 @@ class _CargoEditorState extends State<CargoEditor> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final typeBox = InputText(
|
||||
labelTextKey: 'cargo.type',
|
||||
iconData: Icons.text_format,
|
||||
controller: _descController);
|
||||
final rateBox = InputText(
|
||||
labelTextKey: 'cargo.rate',
|
||||
iconData: Icons.attach_money,
|
||||
controller: _rateController);
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: Scaffold(
|
||||
@@ -58,10 +67,8 @@ class _CargoEditorState extends State<CargoEditor> {
|
||||
Expanded(
|
||||
child: ListView(
|
||||
children: <Widget>[
|
||||
fcsInput("Cargo Type", Icons.text_format,
|
||||
controller: _descController),
|
||||
fcsInput("Rate", Icons.attach_money,
|
||||
controller: _rateController),
|
||||
typeBox,
|
||||
rateBox,
|
||||
SizedBox(height: 30),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user