Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Organise repo #237

Merged
merged 6 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 0 additions & 102 deletions custom_docs/components/Color/flutter.md

This file was deleted.

66 changes: 0 additions & 66 deletions custom_docs/flutter.template.md

This file was deleted.

2 changes: 2 additions & 0 deletions dartdoc_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ dartdoc:
"Utils":
markdown: doc/Utils.md
name: Utils
"Interfaces":
name: Interfaces
categoryOrder: ["Components", "Assets", "Theme", "Utils", "Interfaces"]
showUndocumentedCategories: true
4 changes: 0 additions & 4 deletions example/linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

#include "generated_plugin_registrant.h"

#include <url_launcher_linux/url_launcher_plugin.h>

void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
}
1 change: 0 additions & 1 deletion example/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
url_launcher_linux
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
Expand Down
2 changes: 0 additions & 2 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import Foundation
import path_provider_foundation
import shared_preferences_foundation
import sqflite_darwin
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}
11 changes: 0 additions & 11 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,11 @@ dependencies:
cached_network_image: ^3.3.1
flutter:
sdk: flutter
flutter_svg: ^2.0.10+1
go_router: ^14.1.2
google_fonts: ^6.2.1
markdown_widget: ^2.3.2+6
path_drawing: ^1.0.1
shared_preferences: ^2.2.2
url_launcher: ^6.2.6
zeta_flutter:
path: ../

dev_dependencies:
flutter_test:
sdk: flutter
widgetbook: ^3.10.0

http: any
flutter:
uses-material-design: true
assets:
Expand Down
3 changes: 0 additions & 3 deletions example/windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

#include "generated_plugin_registrant.h"

#include <url_launcher_windows/url_launcher_windows.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
}
1 change: 0 additions & 1 deletion example/windows/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
url_launcher_windows
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
Expand Down
3 changes: 1 addition & 2 deletions lib/src/components/avatar_rail/avatar_rail.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

import '../../utils/utils.dart';
import '../avatars/avatar.dart';
import '../../../zeta_flutter.dart';

/// A stateless widget that represents an avatar rail in the Zeta application.
///
Expand Down
3 changes: 3 additions & 0 deletions lib/src/components/avatars/avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ enum ZetaAvatarSize {
/// An avatar is a visual representation of a user or entity.
///
/// It is recommended to use [ZetaAvatar] with [ZetaAvatarBadge] for status and notification badges, but any widget can be used.
///
/// {@category Components}
///
/// Figma: https://www.figma.com/file/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?type=design&node-id=20816-388
Expand Down Expand Up @@ -436,6 +437,8 @@ enum ZetaAvatarBadgeType {

/// Badge component used with [ZetaAvatar] as either [ZetaAvatar.upperBadge] or [ZetaAvatar.lowerBadge].
///
/// {@category Components}
///
/// Sizes and styles are managed by the parent [ZetaAvatar].
class ZetaAvatarBadge extends StatelessWidget {
/// Constructor for [ZetaAvatarBadge]
Expand Down
2 changes: 2 additions & 0 deletions lib/src/components/bottom sheets/bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ class ZetaBottomSheet extends ZetaStatelessWidget {
/// Function to show [ZetaBottomSheet].
///
/// Uses [showModalBottomSheet] for functionality, but with Zeta styling and simplified functionality.
///
/// {@category Components}
Future<T?> showZetaBottomSheet<T>({
required BuildContext context,
String? title,
Expand Down
2 changes: 2 additions & 0 deletions lib/src/components/breadcrumb/breadcrumb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ class _ZetaBreadcrumbsState extends State<ZetaBreadcrumb> {
/// Class for untruncated [ZetaBreadcrumbItem].
///
/// Should be a child of [ZetaBreadcrumb].
///
/// {@category Components}
class ZetaBreadcrumbItem extends ZetaStatelessWidget {
///Constructor for [ZetaBreadcrumbItem]
ZetaBreadcrumbItem({
Expand Down
4 changes: 3 additions & 1 deletion lib/src/components/button_group/button_group.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ class ZetaButtonGroup extends ZetaStatelessWidget {
// TODO(UX-854): Create country variant.
// TODO(UX-1132): Refactor to make group button a class, not a widget.

/// Group Button item
/// Group Button item.
///
/// {@category Components}
class ZetaGroupButton extends ZetaStatefulWidget {
/// Public Constructor for [ZetaGroupButton]
const ZetaGroupButton({
Expand Down
1 change: 1 addition & 0 deletions lib/src/components/buttons/button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

import '../../../zeta_flutter.dart';
import 'button_style.dart';

/// Zeta Button
/// {@category Components}
Expand Down
1 change: 1 addition & 0 deletions lib/src/components/buttons/icon_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

import '../../../zeta_flutter.dart';
import 'button_style.dart';

/// Component [ZetaIconButton]
/// {@category Components}
Expand Down
2 changes: 2 additions & 0 deletions lib/src/components/chat_item/chat_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ enum _ZetaSlidableActionType {
}

/// Slidable action widget for [ZetaChatItem].
///
/// {@category Components}
class ZetaSlidableAction extends StatelessWidget {
/// Constructs a [ZetaSlidableAction].
const ZetaSlidableAction({
Expand Down
3 changes: 3 additions & 0 deletions lib/src/components/checkbox/checkbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import '../../../zeta_flutter.dart';
/// Widgets that use a checkbox should listen for the [onChanged] callback and
/// rebuild the checkbox with a new [value] to update the visual appearance of
/// the checkbox.
///
/// {@category Components}
///
/// Figma: https://www.figma.com/file/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=21510-54003
Expand Down Expand Up @@ -95,6 +96,8 @@ class ZetaCheckbox extends FormField<bool> {
}

/// [FormFieldState] for [ZetaCheckbox].
///
/// {@category Components}
class ZetaCheckboxFormFieldState extends FormFieldState<bool> {
@override
ZetaCheckbox get widget => super.widget as ZetaCheckbox;
Expand Down
10 changes: 6 additions & 4 deletions lib/src/components/chips/chip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import 'package:flutter/material.dart';

import '../../../zeta_flutter.dart';

export './assist_chip.dart';
export './filter_chip.dart';
export './input_chip.dart';
export './status_chip.dart';
export 'assist_chip.dart';
export 'filter_chip.dart';
export 'input_chip.dart';
export 'status_chip.dart';

/// This covers the broad functionality of [ZetaAssistChip], [ZetaFilterChip] and [ZetaInputChip].
///
/// If [selected] is not null, the chip will have the toggle behavior of [ZetaFilterChip].
///
/// {@category Components}
class ZetaChip extends ZetaStatefulWidget {
/// Constructs a [ZetaChip].
const ZetaChip({
Expand Down
4 changes: 2 additions & 2 deletions lib/src/components/components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export 'bottom sheets/menu_items.dart';
export 'breadcrumb/breadcrumb.dart' hide TruncatedItem;
export 'button_group/button_group.dart';
export 'buttons/button.dart';
export 'buttons/button_style.dart';
export 'buttons/button_style.dart' show ZetaButtonType;
export 'buttons/icon_button.dart';
export 'chat_item/chat_item.dart';
export 'chat_item/contact_item.dart';
export 'checkbox/checkbox.dart' hide ZetaInternalCheckbox;
export 'chips/chip.dart';
export 'comms_button/comms_button.dart';
export 'contact_item/contact_item.dart';
export 'date_input/date_input.dart';
export 'dial_pad/dial_pad.dart';
export 'dialog/dialog.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/components/date_input/date_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:intl/intl.dart';
import 'package:mask_text_input_formatter/mask_text_input_formatter.dart';

import '../../../zeta_flutter.dart';
import '../../interfaces/form_field.dart';
import '../buttons/input_icon_button.dart';
import '../text_input/internal_text_input.dart';

Expand Down
Loading
Loading