BASE: Initialize Localization.
This commit is contained in:
@@ -3,6 +3,7 @@ import 'dart:convert';
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:customer/payment/xenditModel.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
@@ -112,18 +113,18 @@ class _XenditScreenState extends State<XenditScreen> {
|
||||
barrierDismissible: true, // user must tap button!
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text('Cancel Payment'.tr),
|
||||
content: SingleChildScrollView(child: Text("Cancel Payment?".tr)),
|
||||
title: Text('Cancel Payment'.tr()),
|
||||
content: SingleChildScrollView(child: Text("Cancel Payment?".tr())),
|
||||
actions: <Widget>[
|
||||
TextButton(
|
||||
child: Text('Cancel'.tr, style: const TextStyle(color: Colors.red)),
|
||||
child: Text('Cancel'.tr(), style: const TextStyle(color: Colors.red)),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop(false);
|
||||
Navigator.of(context).pop(false);
|
||||
},
|
||||
),
|
||||
TextButton(
|
||||
child: Text('Continue'.tr, style: const TextStyle(color: Colors.green)),
|
||||
child: Text('Continue'.tr(), style: const TextStyle(color: Colors.green)),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop(false);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user