mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 22:48:54 +03:30
fix update info
This commit is contained in:
@@ -317,6 +317,7 @@ class SelectionItem extends StatelessWidget {
|
|||||||
final String? secondLine;
|
final String? secondLine;
|
||||||
final Color? firstLineColor;
|
final Color? firstLineColor;
|
||||||
final Color? secondLineColor;
|
final Color? secondLineColor;
|
||||||
|
final Color? backgroundColor;
|
||||||
final VoidCallback? onTap;
|
final VoidCallback? onTap;
|
||||||
|
|
||||||
SelectionItem({
|
SelectionItem({
|
||||||
@@ -325,6 +326,7 @@ class SelectionItem extends StatelessWidget {
|
|||||||
this.onTap,
|
this.onTap,
|
||||||
this.firstLineColor,
|
this.firstLineColor,
|
||||||
this.secondLineColor,
|
this.secondLineColor,
|
||||||
|
this.backgroundColor
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -336,7 +338,7 @@ class SelectionItem extends StatelessWidget {
|
|||||||
margin: EdgeInsets.symmetric(vertical: 10),
|
margin: EdgeInsets.symmetric(vertical: 10),
|
||||||
padding: EdgeInsets.symmetric(vertical: 5),
|
padding: EdgeInsets.symmetric(vertical: 5),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.transparent,
|
color: backgroundColor,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
Radius.circular(3),
|
Radius.circular(3),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ class Auth with ChangeNotifier {
|
|||||||
|
|
||||||
Future<void> setUserData(id, name, email) async {
|
Future<void> setUserData(id, name, email) async {
|
||||||
var response = await http.post(
|
var response = await http.post(
|
||||||
Uri.parse('https://cssd-doc.com/api/UpdateInfo'),
|
Uri.parse('https://www.cssd-doc.com/api/UpdateInfo'),
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'Bearer ' + token!,
|
'Authorization': 'Bearer ' + token!,
|
||||||
HttpHeaders.contentTypeHeader: 'application/json',
|
HttpHeaders.contentTypeHeader: 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user