Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivmanivannan committed Feb 19, 2024
1 parent 12dc14e commit 3d0e146
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions lib/components/attachment_upload/attachment_upload.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import 'package:tarka_ui/subcomponents/image.dart';
class TUIAttachmentUpload extends StatelessWidget {
final String title;
final bool isIconUsed;
IconData? icon;
TUIImage? image;
late final IconData? icon;
late final TUIImage? image;
final String description;
final Function()? deleteTapped;
final Function()? downloadTapped;
Expand Down
8 changes: 4 additions & 4 deletions lib/components/checkbox/checkbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import 'package:flutter/material.dart';
import 'package:tarka_ui/styles/theme.dart';

class TUICheckBox extends StatefulWidget {
late bool enableMixedState;
final TUICheckBoxState state;
final Function(TUICheckBoxState)? onChanged;

TUICheckBox({
super.key,
this.enableMixedState = false,
Expand All @@ -14,10 +18,6 @@ class TUICheckBox extends StatefulWidget {
}
}

late bool enableMixedState;
final TUICheckBoxState state;
final Function(TUICheckBoxState)? onChanged;

@override
State<TUICheckBox> createState() => _TUICheckBoxState();
}
Expand Down
4 changes: 2 additions & 2 deletions lib/components/checkbox_row/checkbox_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class TUICheckBoxRow extends StatefulWidget {
final Function(TUICheckBoxRowState)? onChanged;

const TUICheckBoxRow({
Key? key,
super.key,
this.enableMixedState = false,
this.state = TUICheckBoxRowState.unchecked,
required this.title,
this.description = "",
this.onChanged,
this.backgroundDark = false,
}) : super(key: key);
});

@override
State<StatefulWidget> createState() => _TUICheckBoxRowState();
Expand Down
7 changes: 3 additions & 4 deletions lib/components/email_field/email_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ class TUIEmailField extends StatefulWidget {
final TextEditingController? controller;

const TUIEmailField({
Key? key,
super.key,
this.label = TUIEmailFieldLabel.to,
required this.emails,
this.showSuffix = false,
this.onAdd,
this.onRemove,
this.controller,
}) : super(key: key);
});

@override
State<StatefulWidget> createState() => _TUIEmailFieldState();
Expand Down Expand Up @@ -123,7 +123,6 @@ class _TUIEmailFieldState extends State<TUIEmailField> {
),
child: Row(
mainAxisSize: MainAxisSize.max,
// mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: _emails.isEmpty
? CrossAxisAlignment.center
: CrossAxisAlignment.start,
Expand All @@ -148,7 +147,7 @@ class _TUIEmailFieldState extends State<TUIEmailField> {
) {
int idx = _emails.indexOf(email);
return getChip(email, theme, idx);
}).toList(),
}),
],
),
TextField(
Expand Down
4 changes: 2 additions & 2 deletions lib/components/menu_item/menu_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class TUIMenuItem extends StatefulWidget {
final Function(TUIMenuItemState)? onRightTap;

const TUIMenuItem({
Key? key,
super.key,
required this.item,
this.backgroundDark = false,
this.onLeftTap,
this.onRightTap,
this.action,
}) : super(key: key);
});

@override
State<StatefulWidget> createState() => _TUIMenuItemState();
Expand Down
8 changes: 4 additions & 4 deletions lib/components/navigation_row/navigation_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import 'package:tarka_ui/styles/theme.dart';

class TUINavigationRow extends StatelessWidget {
final String title;
late IconData? icon;
late Widget? accessoryView;
late double? _height;
late final IconData? icon;
late final Widget? accessoryView;
late final double? _height;

TUINavigationRow({
TUINavigationRow({
super.key,
required this.title,
this.icon,
Expand Down
4 changes: 2 additions & 2 deletions lib/components/toggle_row/toggle_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class TUIToggleRow extends StatefulWidget {
final bool backgroundDark;

const TUIToggleRow({
Key? key,
super.key,
required this.title,
this.description = "",
this.icon,
required this.value,
this.onChanged,
this.backgroundDark = false,
}) : super(key: key);
});

@override
State<StatefulWidget> createState() => _TUIToggleRowState();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0
homepage: https://github.com/tarkalabs/tarka-ui-kit-flutter.git

environment:
sdk: '>=3.0.0'
sdk: '^3.0.0'
flutter: ">=3.10.0"

dependencies:
Expand Down

0 comments on commit 3d0e146

Please sign in to comment.