diff --git a/LICENSE b/LICENSE index ba75c69..fe891f8 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,9 @@ -TODO: Add your license here. +Copyright (c) 2022 Iconica, All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/example/lib/main.dart b/example/lib/main.dart index 130dba7..c5f58fa 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/flutter_date_time_picker.dart'; diff --git a/lib/flutter_date_time_picker.dart b/lib/flutter_date_time_picker.dart index 1f53b98..32c71fc 100644 --- a/lib/flutter_date_time_picker.dart +++ b/lib/flutter_date_time_picker.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + library flutter_date_time_picker; export 'src/date_time_picker.dart' show DateTimePicker; diff --git a/lib/src/date_time_picker.dart b/lib/src/date_time_picker.dart index 9e6c4ec..977987c 100644 --- a/lib/src/date_time_picker.dart +++ b/lib/src/date_time_picker.dart @@ -1,9 +1,13 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/src/models/date_time_picker_theme.dart'; import 'package:flutter_date_time_picker/src/utils/date_time_picker_controller.dart'; -import 'package:flutter_date_time_picker/src/widgets/month_date_time_picker.dart/month_date_time_picker_sheet.dart'; +import 'package:flutter_date_time_picker/src/widgets/month_date_time_picker/month_date_time_picker_sheet.dart'; import 'package:flutter_date_time_picker/src/widgets/week_date_time_picker/week_date_time_picker_sheet.dart'; import 'package:intl/date_symbol_data_local.dart'; diff --git a/lib/src/enums/date_box_shape.dart b/lib/src/enums/date_box_shape.dart index 9010f11..97d291f 100644 --- a/lib/src/enums/date_box_shape.dart +++ b/lib/src/enums/date_box_shape.dart @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause /// Defines the shape of a specific date. enum DateBoxShape { diff --git a/lib/src/extensions/date_time.dart b/lib/src/extensions/date_time.dart index 6c82034..b151a90 100644 --- a/lib/src/extensions/date_time.dart +++ b/lib/src/extensions/date_time.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + extension DateTimeExtension on DateTime { /// Check if the current [DateTime] is the same as the given [selectedDate] bool equals(DateTime selectedDate) { diff --git a/lib/src/extensions/time_of_day.dart b/lib/src/extensions/time_of_day.dart index 0e0faf5..8ad8ec2 100644 --- a/lib/src/extensions/time_of_day.dart +++ b/lib/src/extensions/time_of_day.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; extension TimeOfDayExtension on TimeOfDay { diff --git a/lib/src/models/date_box_base_theme.dart b/lib/src/models/date_box_base_theme.dart index 2dc6283..4fd92a5 100644 --- a/lib/src/models/date_box_base_theme.dart +++ b/lib/src/models/date_box_base_theme.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/widgets.dart' show Color, TextStyle; class DateBoxBaseTheme { diff --git a/lib/src/models/date_box_current_theme.dart b/lib/src/models/date_box_current_theme.dart index 1c1f6d8..3a2d234 100644 --- a/lib/src/models/date_box_current_theme.dart +++ b/lib/src/models/date_box_current_theme.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/widgets.dart' show Color, TextStyle; class DateBoxCurrentTheme { diff --git a/lib/src/models/date_box_disabled_theme.dart b/lib/src/models/date_box_disabled_theme.dart index 7172fe5..5ad647b 100644 --- a/lib/src/models/date_box_disabled_theme.dart +++ b/lib/src/models/date_box_disabled_theme.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/widgets.dart' show Color, TextStyle; class DateBoxDisabledTheme { diff --git a/lib/src/models/date_box_highlight_theme.dart b/lib/src/models/date_box_highlight_theme.dart index 97a26bd..b9310c0 100644 --- a/lib/src/models/date_box_highlight_theme.dart +++ b/lib/src/models/date_box_highlight_theme.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/widgets.dart' show Color, TextStyle; class DateBoxHighlightTheme { diff --git a/lib/src/models/date_box_selected_theme.dart b/lib/src/models/date_box_selected_theme.dart index abe73af..28f49fc 100644 --- a/lib/src/models/date_box_selected_theme.dart +++ b/lib/src/models/date_box_selected_theme.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/widgets.dart' show Color, TextStyle; class DateBoxSelectedTheme { diff --git a/lib/src/models/date_time_picker_theme.dart b/lib/src/models/date_time_picker_theme.dart index b8ec3a2..90417d0 100644 --- a/lib/src/models/date_time_picker_theme.dart +++ b/lib/src/models/date_time_picker_theme.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/flutter_date_time_picker.dart'; diff --git a/lib/src/utils/date_time_picker_controller.dart b/lib/src/utils/date_time_picker_controller.dart index ae44af8..d789c7e 100644 --- a/lib/src/utils/date_time_picker_controller.dart +++ b/lib/src/utils/date_time_picker_controller.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/src/models/date_time_picker_theme.dart'; diff --git a/lib/src/widgets/month_date_time_picker.dart/month_date_time_picker.dart b/lib/src/widgets/month_date_time_picker/month_date_time_picker.dart similarity index 99% rename from lib/src/widgets/month_date_time_picker.dart/month_date_time_picker.dart rename to lib/src/widgets/month_date_time_picker/month_date_time_picker.dart index 593fb28..edc19c1 100644 --- a/lib/src/widgets/month_date_time_picker.dart/month_date_time_picker.dart +++ b/lib/src/widgets/month_date_time_picker/month_date_time_picker.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/src/enums/date_box_shape.dart'; import 'package:flutter_date_time_picker/src/extensions/date_time.dart'; diff --git a/lib/src/widgets/month_date_time_picker.dart/month_date_time_picker_sheet.dart b/lib/src/widgets/month_date_time_picker/month_date_time_picker_sheet.dart similarity index 98% rename from lib/src/widgets/month_date_time_picker.dart/month_date_time_picker_sheet.dart rename to lib/src/widgets/month_date_time_picker/month_date_time_picker_sheet.dart index 5a80632..07f3734 100644 --- a/lib/src/widgets/month_date_time_picker.dart/month_date_time_picker_sheet.dart +++ b/lib/src/widgets/month_date_time_picker/month_date_time_picker_sheet.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/src/extensions/date_time.dart'; import 'package:flutter_date_time_picker/src/utils/date_time_picker_controller.dart'; diff --git a/lib/src/widgets/week_date_time_picker/week_date_time_picker.dart b/lib/src/widgets/week_date_time_picker/week_date_time_picker.dart index 9cf8778..e59df9d 100644 --- a/lib/src/widgets/week_date_time_picker/week_date_time_picker.dart +++ b/lib/src/widgets/week_date_time_picker/week_date_time_picker.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/flutter_date_time_picker.dart'; import 'package:flutter_date_time_picker/src/extensions/date_time.dart'; diff --git a/lib/src/widgets/week_date_time_picker/week_date_time_picker_sheet.dart b/lib/src/widgets/week_date_time_picker/week_date_time_picker_sheet.dart index d7bf1ce..8593da4 100644 --- a/lib/src/widgets/week_date_time_picker/week_date_time_picker_sheet.dart +++ b/lib/src/widgets/week_date_time_picker/week_date_time_picker_sheet.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/src/extensions/date_time.dart'; import 'package:flutter_date_time_picker/src/utils/date_time_picker_controller.dart'; diff --git a/test/date_time_extension_test.dart b/test/date_time_extension_test.dart index 805d3b4..5d141e3 100644 --- a/test/date_time_extension_test.dart +++ b/test/date_time_extension_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_date_time_picker/src/extensions/date_time.dart'; diff --git a/test/flutter_date_time_picker_test.dart b/test/flutter_date_time_picker_test.dart index b886144..a55089c 100644 --- a/test/flutter_date_time_picker_test.dart +++ b/test/flutter_date_time_picker_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/flutter_date_time_picker.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/time_of_day_extension_test.dart b/test/time_of_day_extension_test.dart index 4e2b1f8..8797400 100644 --- a/test/time_of_day_extension_test.dart +++ b/test/time_of_day_extension_test.dart @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2022 Iconica +// +// SPDX-License-Identifier: BSD-3-Clause + import 'package:flutter/material.dart'; import 'package:flutter_date_time_picker/src/extensions/time_of_day.dart'; import 'package:flutter_test/flutter_test.dart';