Fix: Ajuste no Switch e na formatação de data.
This commit is contained in:
parent
f4c36d1740
commit
61b7a23365
|
@ -137,6 +137,9 @@ PODS:
|
|||
- Flutter
|
||||
- flutter_secure_storage (6.0.0):
|
||||
- Flutter
|
||||
- fluttertoast (0.0.2):
|
||||
- Flutter
|
||||
- Toast
|
||||
- GoogleAppMeasurement (10.27.0):
|
||||
- GoogleAppMeasurement/AdIdSupport (= 10.27.0)
|
||||
- GoogleUtilities/AppDelegateSwizzler (~> 7.11)
|
||||
|
@ -219,6 +222,7 @@ PODS:
|
|||
- Flutter
|
||||
- FlutterMacOS
|
||||
- SwiftyGif (5.4.5)
|
||||
- Toast (4.1.1)
|
||||
- url_launcher_ios (0.0.1):
|
||||
- Flutter
|
||||
- video_player_avfoundation (0.0.1):
|
||||
|
@ -239,6 +243,7 @@ DEPENDENCIES:
|
|||
- flutter_inappwebview_ios (from `.symlinks/plugins/flutter_inappwebview_ios/ios`)
|
||||
- flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)
|
||||
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
|
||||
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
|
||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
||||
- local_auth_darwin (from `.symlinks/plugins/local_auth_darwin/darwin`)
|
||||
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
||||
|
@ -273,6 +278,7 @@ SPEC REPOS:
|
|||
- PromisesSwift
|
||||
- SDWebImage
|
||||
- SwiftyGif
|
||||
- Toast
|
||||
|
||||
EXTERNAL SOURCES:
|
||||
connectivity_plus:
|
||||
|
@ -297,6 +303,8 @@ EXTERNAL SOURCES:
|
|||
:path: ".symlinks/plugins/flutter_local_notifications/ios"
|
||||
flutter_secure_storage:
|
||||
:path: ".symlinks/plugins/flutter_secure_storage/ios"
|
||||
fluttertoast:
|
||||
:path: ".symlinks/plugins/fluttertoast/ios"
|
||||
image_picker_ios:
|
||||
:path: ".symlinks/plugins/image_picker_ios/ios"
|
||||
local_auth_darwin:
|
||||
|
@ -342,6 +350,7 @@ SPEC CHECKSUMS:
|
|||
flutter_inappwebview_ios: 97215cf7d4677db55df76782dbd2930c5e1c1ea0
|
||||
flutter_local_notifications: 4cde75091f6327eb8517fa068a0a5950212d2086
|
||||
flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12
|
||||
fluttertoast: e9a18c7be5413da53898f660530c56f35edfba9c
|
||||
GoogleAppMeasurement: f65fc137531af9ad647f1c0a42f3b6a4d3a98049
|
||||
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
|
||||
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
|
||||
|
@ -358,10 +367,11 @@ SPEC CHECKSUMS:
|
|||
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
|
||||
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
|
||||
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
|
||||
Toast: 1f5ea13423a1e6674c4abdac5be53587ae481c4e
|
||||
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
|
||||
video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3
|
||||
webview_flutter_wkwebview: be0f0d33777f1bfd0c9fdcb594786704dbf65f36
|
||||
|
||||
PODFILE CHECKSUM: d7f4d1b71f8c708247c1078c4aec33a28c763405
|
||||
|
||||
COCOAPODS: 1.15.2
|
||||
COCOAPODS: 1.14.3
|
||||
|
|
|
@ -419,7 +419,7 @@ class _VisitorSearchModalTemplateComponentWidgetState
|
|||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 20.0,
|
||||
height: 30.0,
|
||||
)
|
||||
],
|
||||
),
|
||||
|
|
|
@ -33,7 +33,7 @@ class ScheduleCompleteVisitPageModel
|
|||
String convertDateFormat(String dateStr) {
|
||||
try {
|
||||
// Formato original
|
||||
DateFormat originalFormat = DateFormat('d/M/y H:mm:ss');
|
||||
DateFormat originalFormat = DateFormat('dd/MM/yyyy HH:mm:ss');
|
||||
// Novo formato
|
||||
DateFormat newFormat = DateFormat('y-M-d H:mm:ss');
|
||||
|
||||
|
@ -197,7 +197,7 @@ class ScheduleCompleteVisitPageModel
|
|||
textFieldFocusNode1 = FocusNode();
|
||||
textController1 = TextEditingController(
|
||||
text: dateTimeFormat(
|
||||
'd/M/y H:mm:ss',
|
||||
'dd/MM/yyyy HH:mm:ss',
|
||||
DateTime.now().add(const Duration(minutes: 10)),
|
||||
// locale: FFLocalizations.of(context).languageCode,
|
||||
));
|
||||
|
@ -206,7 +206,7 @@ class ScheduleCompleteVisitPageModel
|
|||
textFieldFocusNode2 = FocusNode();
|
||||
textController2 = TextEditingController(
|
||||
text: dateTimeFormat(
|
||||
'd/M/y H:mm:ss',
|
||||
'dd/MM/yyyy HH:mm:ss',
|
||||
DateTime.now().add(const Duration(days: 1)),
|
||||
// locale: FFLocalizations.of(context).languageCode,
|
||||
));
|
||||
|
|
|
@ -1435,12 +1435,11 @@ Widget scheduleVisit(BuildContext context,
|
|||
),
|
||||
),
|
||||
),
|
||||
Switch.adaptive(
|
||||
Switch(
|
||||
value: _model.switchValue!,
|
||||
onChanged: (newValue) async {
|
||||
safeSetState(() => _model.switchValue = newValue);
|
||||
},
|
||||
applyCupertinoTheme: false,
|
||||
focusColor: FlutterFlowTheme.of(context).primary,
|
||||
trackColor: WidgetStateProperty.resolveWith(
|
||||
(states) {
|
||||
|
|
Loading…
Reference in New Issue