Skip to content

Commit 0c6a975

Browse files
committed
Move and rename files for better documentation
1 parent 39822f0 commit 0c6a975

File tree

12 files changed

+26
-20
lines changed

12 files changed

+26
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [1.0.2] - 2019-12-12
2+
3+
* Move and rename files for better documentation
4+
15
## [1.0.1] - 2019-12-11
26

37
* Fully rewrite code

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ Widget build(BuildContext context) {
5252
return SmartSelect(
5353
title: 'Frameworks',
5454
value: value,
55-
option: SmartSelectOption(options),
56-
isMultiChoice: true,
55+
option: SmartSelectOption(
56+
options,
57+
isMultiChoice: true,
58+
),
5759
onChange: (val) => setState(() => value = val),
5860
);
5961
}

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ packages:
127127
path: ".."
128128
relative: true
129129
source: path
130-
version: "1.0.1"
130+
version: "1.0.2"
131131
source_span:
132132
dependency: transitive
133133
description:

lib/smart_select.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
library smart_select;
22

3-
export './smart_select_main.dart';
4-
export './smart_select_state.dart';
5-
export './smart_select_option.dart';
6-
export './smart_select_tile.dart';
3+
export 'src/widget.dart';
4+
export 'src/state.dart';
5+
export 'src/option.dart';
6+
export 'src/tile.dart';

lib/smart_select_choices.dart renamed to lib/src/choices.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import './smart_select_option.dart';
2+
import './option.dart';
33
import 'package:sticky_headers/sticky_headers.dart';
44

55
class SmartSelectChoices extends StatefulWidget {
File renamed without changes.

lib/smart_select_route.dart renamed to lib/src/route.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import 'package:flutter/material.dart';
2-
import './smart_select_route_header.dart';
3-
import './smart_select_option.dart';
4-
import './smart_select_choices.dart';
5-
import './smart_select_state.dart';
2+
import './route_header.dart';
3+
import './option.dart';
4+
import './choices.dart';
5+
import './state.dart';
66

77
class SmartSelectRoute extends StatefulWidget {
88
final String title;

lib/smart_select_route_header.dart renamed to lib/src/route_header.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'package:flutter/material.dart';
2-
import './smart_select_state.dart';
3-
import './smart_select_option.dart';
2+
import './state.dart';
3+
import './option.dart';
44

55
class RouteHeader extends StatefulWidget implements PreferredSizeWidget {
66
final String title;

lib/smart_select_state.dart renamed to lib/src/state.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/material.dart';
2-
import './smart_select_option.dart';
2+
import './option.dart';
33

44
enum SmartSelectTarget { page, popup, sheet }
55
typedef void SmartSelectOnChange(dynamic value);
File renamed without changes.

0 commit comments

Comments
 (0)