D1APP-36 swith gesture data increased | todos x
This commit is contained in:
parent
d89ae8aba6
commit
c5799e915f
|
|
@ -49,10 +49,7 @@ class PhoneNumberInput extends StatelessWidget {
|
|||
.textTheme
|
||||
.caption!
|
||||
.copyWith(color: Theme.of(context).colorScheme.primary),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
//TODO: Needs implementaion
|
||||
},
|
||||
recognizer: TapGestureRecognizer()..onTap = () {},
|
||||
),
|
||||
const TextSpan(text: 'و\n'),
|
||||
TextSpan(
|
||||
|
|
@ -61,10 +58,7 @@ class PhoneNumberInput extends StatelessWidget {
|
|||
.textTheme
|
||||
.caption!
|
||||
.copyWith(color: Theme.of(context).colorScheme.primary),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
//TODO: Needs implementaion
|
||||
},
|
||||
recognizer: TapGestureRecognizer()..onTap = () {},
|
||||
),
|
||||
const TextSpan(text: 'را میپذیرم'),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -25,31 +25,25 @@ class EditProfile extends StatelessWidget {
|
|||
DidvanTextField(
|
||||
title: 'نام کاربری',
|
||||
hintText: 'انتخاب نام کاربری (اختیاری)',
|
||||
onChanged: (value) {
|
||||
//TODO: Needs implementation
|
||||
},
|
||||
onChanged: (value) {},
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
DidvanTextField(
|
||||
title: 'ایمیل',
|
||||
hintText: 'مثال: example@email.com',
|
||||
onChanged: (value) {
|
||||
//TODO: Meeds implementaion
|
||||
},
|
||||
onChanged: (value) {},
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const DidvanTextField(
|
||||
title: 'موبایل',
|
||||
enabled: false,
|
||||
hintText: '09123456789', //TODO: Needs api
|
||||
hintText: '09123456789',
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
DidvanSwitch(
|
||||
value: true, //TODO: Needs api
|
||||
value: true,
|
||||
title: 'ورود با اثر انگشت',
|
||||
onChanged: (value) => {
|
||||
//TODO: Needs implementaion
|
||||
},
|
||||
onChanged: (value) => {},
|
||||
),
|
||||
const DidvanDivider(),
|
||||
MenuItem(
|
||||
|
|
|
|||
|
|
@ -8,9 +8,7 @@ class ProfilePhoto extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
//TODO: Needs implementation
|
||||
},
|
||||
onTap: () {},
|
||||
child: Center(
|
||||
child: Stack(
|
||||
children: [
|
||||
|
|
|
|||
|
|
@ -32,7 +32,12 @@ class _DidvanSwitchState extends State<DidvanSwitch> {
|
|||
Widget build(BuildContext context) {
|
||||
return MenuItem(
|
||||
title: widget.title,
|
||||
onTap: () => widget.onChanged(_value),
|
||||
onTap: () {
|
||||
setState(
|
||||
() => _value = !_value,
|
||||
);
|
||||
widget.onChanged(_value);
|
||||
},
|
||||
icon: widget.icon,
|
||||
trailing: CupertinoSwitch(
|
||||
activeColor: Theme.of(context).colorScheme.primary,
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ class RequestService {
|
|||
}
|
||||
|
||||
String _errorMessageGenerator(http.Response? response) {
|
||||
//TODO: Needs implementation
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
import 'package:didvan/config/design_config.dart';
|
||||
import 'package:didvan/config/theme_data.dart';
|
||||
import 'package:didvan/constants/assets.dart';
|
||||
import 'package:didvan/main.dart';
|
||||
import 'package:didvan/models/enums.dart';
|
||||
import 'package:didvan/models/view/action_sheet_data.dart';
|
||||
import 'package:didvan/widgets/didvan/button.dart';
|
||||
import 'package:didvan/widgets/didvan/card.dart';
|
||||
import 'package:didvan/widgets/didvan/text.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
|
|
|||
Loading…
Reference in New Issue