Skip to content

Commit

Permalink
habito
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrcode committed Oct 11, 2022
1 parent 05476fd commit 61a8970
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 354 deletions.
3 changes: 2 additions & 1 deletion lib/Controller/HabitoController.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class HabitoController extends Base {

habitoId(int? value) => model.id = value;
habitoNome(String? value) => model.nome = value.toString();
habitoDataehora(String? value) => model.data = value.toString();
habitoDataehora(String? value) =>
{print('dfasfa ' + (value ?? '')), model.data = value.toString()};
habitoDias(List<dynamic>? value) => model.dias = value!.cast<String>();
habitoCor(String? value) => model.cor = value.toString();

Expand Down
3 changes: 3 additions & 0 deletions lib/components/selectData.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class SelectData extends StatefulWidget {
class _SelectDataState extends State<SelectData> {
@override
Widget build(BuildContext context) {
if (widget.controller!.text.length > 6 && widget.apenasHora!) {
widget.controller!.text = widget.controller!.text.substring(11);
}
return Padding(
padding: const EdgeInsets.only(bottom: 16),
child: Column(
Expand Down
1 change: 1 addition & 0 deletions lib/components/selectDias.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class _SelectDiaState extends State<SelectDia> {
void initState() {
super.initState();
teste = widget.diaAtual!;
widget.dia(teste);
}

@override
Expand Down
178 changes: 0 additions & 178 deletions lib/main copy 2.dart

This file was deleted.

175 changes: 0 additions & 175 deletions lib/main copy.dart

This file was deleted.

0 comments on commit 61a8970

Please sign in to comment.