Skip to content

Commit

Permalink
#34 change package name to flow_form
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanrashid52 committed Mar 29, 2020
1 parent b75df71 commit cd2af07
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 44 deletions.
4 changes: 2 additions & 2 deletions form_builder_sample/lib/database_impl.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:formbuilder/helpers/data_storage.dart';
import 'package:formbuilder/helpers/database.dart';
import 'package:flow_form/helpers/data_storage.dart';
import 'package:flow_form/helpers/database.dart';
import 'package:hive/hive.dart';

class DatabaseImpl implements Database {
Expand Down
4 changes: 2 additions & 2 deletions form_builder_sample/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flow_form/flow_form.dart';
import 'package:flow_form/form.dart';
import 'package:flutter/material.dart';
import 'package:formbuilder/form.dart';
import 'package:formbuilder/formbuilder.dart';
import 'package:formbuildersample/database_impl.dart';
import 'package:formbuildersample/widgets/screens/dashboard.dart';
import 'package:formbuildersample/widgets/screens/date_picker_screen.dart';
Expand Down
2 changes: 1 addition & 1 deletion form_builder_sample/lib/mappers/select_type_mapper.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:formbuilder/redux/models/store_view_model.dart';
import 'package:flow_form/redux/models/store_view_model.dart';

import '../widgets/components/select/multi_options.dart';
import '../widgets/components/select/options.dart';
Expand Down
4 changes: 2 additions & 2 deletions form_builder_sample/lib/widgets/screens/dashboard.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:formbuilder/formbuilder.dart';
import 'package:formbuilder/question_navigation.dart';
import 'package:flow_form/flow_form.dart';
import 'package:flow_form/question_navigation.dart';

import '../square_box.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:formbuilder/formbuilder.dart';
import 'package:flow_form/flow_form.dart';

import '../components/comment.dart';
import '../components/date_picker/date_picker.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:formbuilder/formbuilder.dart';
import 'package:formbuilder/helpers/data_storage.dart';
import 'package:flow_form/flow_form.dart';
import 'package:flow_form/helpers/data_storage.dart';

import '../components/comment.dart';
import '../components/file_uploader/uploader.dart';
Expand Down
2 changes: 1 addition & 1 deletion form_builder_sample/lib/widgets/screens/main_screen.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flow_form/flow_form.dart';
import 'package:flutter/material.dart';
import 'package:formbuilder/formbuilder.dart';

///Class for main screen component
class MainScreen extends StatelessWidget {
Expand Down
4 changes: 2 additions & 2 deletions form_builder_sample/lib/widgets/screens/section_screen.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:formbuilder/formbuilder.dart';
import 'package:formbuilder/question_navigation.dart';
import 'package:flow_form/flow_form.dart';
import 'package:flow_form/question_navigation.dart';

import '../components/square_buttons.dart';

Expand Down
2 changes: 1 addition & 1 deletion form_builder_sample/lib/widgets/screens/select_screen.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:formbuilder/formbuilder.dart';
import 'package:flow_form/flow_form.dart';

import '../../mappers/select_type_mapper.dart';
import '../components/comment.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:formbuilder/formbuilder.dart';
import 'package:flow_form/flow_form.dart';

import '../components/buttons/submit_button.dart';
import '../components/text_input.dart';
Expand Down
14 changes: 7 additions & 7 deletions form_builder_sample/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.11"
flow_form:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.0.2"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -214,13 +221,6 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
formbuilder:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.0.1"
glob:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion form_builder_sample/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ environment:
dependencies:
flutter:
sdk: flutter
formbuilder:
flow_form:
path: ../../form_builder/

# The following adds the Cupertino Icons font to your application.
Expand Down
2 changes: 1 addition & 1 deletion form_builder_sample/test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flow_form/form.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:formbuilder/form.dart';

import '../lib/main.dart';

Expand Down
11 changes: 6 additions & 5 deletions lib/formbuilder.dart → lib/flow_form.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
library formbuilder;
library flow_form;

import 'package:flutter/widgets.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:formbuilder/form.dart';
import 'package:formbuilder/question_navigation.dart';
import 'package:formbuilder/redux/app_state.dart';
import 'package:formbuilder/redux/store.dart';

import 'package:flow_form/form.dart';
import 'package:flow_form/question_navigation.dart';
import 'package:flow_form/redux/app_state.dart';
import 'package:flow_form/redux/store.dart';

import 'redux/models/store_view_model.dart';

Expand Down
6 changes: 3 additions & 3 deletions lib/json_parser/flow_tree.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:formbuilder/helpers/common.dart';
import 'package:formbuilder/redux/actions/actions.dart';
import 'package:formbuilder/redux/store.dart';
import 'package:flow_form/helpers/common.dart';
import 'package:flow_form/redux/actions/actions.dart';
import 'package:flow_form/redux/store.dart';

import 'flow_node.dart';

Expand Down
7 changes: 4 additions & 3 deletions lib/question_navigation.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:formbuilder/redux/actions/actions.dart';
import 'package:formbuilder/redux/models/store_view_model.dart';
import 'package:formbuilder/redux/store.dart';
import 'package:flow_form/redux/actions/actions.dart';
import 'package:flow_form/redux/models/store_view_model.dart';
import 'package:flow_form/redux/models/store_view_model.dart';
import 'package:flow_form/redux/store.dart';

import 'json_parser/flow_tree.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/redux/app_state.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/foundation.dart';
import 'package:formbuilder/helpers/database.dart';
import 'package:flow_form/helpers/database.dart';
import '../json_parser/flow_node.dart';
import '../json_parser/flow_tree.dart';
import '../user_response.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/redux/models/store_view_model.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:formbuilder/json_parser/flow_tree.dart';
import 'package:formbuilder/helpers/database.dart';
import 'package:flow_form/json_parser/flow_tree.dart';
import 'package:flow_form/helpers/database.dart';
import 'package:redux/redux.dart';

import '../../json_parser/flow_node.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/redux/store.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:formbuilder/helpers/database.dart';
import 'package:flow_form/helpers/database.dart';
import 'package:redux/redux.dart';

import 'app_state.dart';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: formbuilder
name: flow_form
description: A new Flutter package.
version: 0.0.2
homepage: https://github.com/technogise/flow_form
Expand Down
2 changes: 1 addition & 1 deletion test/formbuilder_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter_test/flutter_test.dart';

import 'package:formbuilder/formbuilder.dart';
import 'package:flow_form/flow_form.dart';

void main() {
test('adds one to input values', () {
Expand Down
2 changes: 1 addition & 1 deletion test/helper.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:collection/collection.dart';
import 'package:formbuilder/json_parser/flow_node.dart';
import 'package:flow_form/json_parser/flow_node.dart';

///Helper class for test
class Helper {
Expand Down
4 changes: 2 additions & 2 deletions test/json_parser/tree_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:formbuilder/json_parser/flow_node.dart';
import 'package:formbuilder/json_parser/flow_tree.dart';
import 'package:flow_form/json_parser/flow_node.dart';
import 'package:flow_form/json_parser/flow_tree.dart';

import '../helper.dart';
import 'test_flow_and_test_data.dart';
Expand Down

0 comments on commit cd2af07

Please sign in to comment.