merge material 3

This commit is contained in:
tzw
2024-01-25 17:40:35 +06:30
parent 18053cbe3c
commit 991ecd7ae6
70 changed files with 572 additions and 1377 deletions

View File

@@ -1,8 +1,7 @@
import 'package:fcs/helpers/theme.dart';
import 'package:fcs/pages/main/model/main_model.dart';
import 'package:fcs/pages/widgets/local_text.dart';
import 'package:fcs/pages/widgets/local_app_bar.dart';
import 'package:fcs/pages/widgets/progress.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:fcs/pages/main/util.dart';
@@ -41,27 +40,11 @@ class _ProfileCurrencyEditState extends State<ProfileCurrencyEdit> {
return LocalProgress(
inAsyncCall: _loading,
child: Scaffold(
appBar: AppBar(
centerTitle: true,
title: LocalText(
context,
"profile.edit.currency.title",
fontSize: 20,
color: primaryColor,
),
backgroundColor: Colors.white,
shadowColor: Colors.transparent,
leading: IconButton(
icon: Icon(
CupertinoIcons.back,
size: 35,
color: primaryColor,
),
onPressed: () {
Navigator.of(context).pop();
},
),
),
appBar: LocalAppBar(
labelKey: 'profile.edit.currency.title',
backgroundColor: Colors.white,
labelColor: primaryColor,
arrowColor: primaryColor),
body: Column(
children: <Widget>[
InkWell(
@@ -75,10 +58,10 @@ class _ProfileCurrencyEditState extends State<ProfileCurrencyEdit> {
value: Currency.USD,
groupValue: _currency,
onChanged: (Currency? value) {
if(value != null)
setState(() {
_currency = value;
});
if (value != null)
setState(() {
_currency = value;
});
},
),
),
@@ -94,10 +77,10 @@ class _ProfileCurrencyEditState extends State<ProfileCurrencyEdit> {
value: Currency.MMK,
groupValue: _currency,
onChanged: (Currency? value) {
if(value != null)
setState(() {
_currency = value;
});
if (value != null)
setState(() {
_currency = value;
});
},
),
),