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

Sql lite bug fix #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Commenting Unused Code
Rody Davis committed Nov 15, 2018
commit df2a0bf62c53938b81403780ebb5b2bf56ac8022
20 changes: 9 additions & 11 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:async';

import 'package:flutter/material.dart';

import '../data/database_helper.dart';
@@ -24,12 +22,12 @@ final List<Task> completedTaskList = new List();
AnimationController detailsTapAnimationController;
final _duration = new Duration(milliseconds: 300);
DetailsWidgetStatus _detailsWidgetStatus = DetailsWidgetStatus.CLOSE;
Future _bottomSheet;
// Future _bottomSheet;
List<String> tblNames = new List();
String listName = "";
String activeList = "";
String defaultListName = "";
StatefulBuilder _builder;
// StatefulBuilder _builder;
StateSetter setSheetState;
bool details = false;

@@ -45,7 +43,7 @@ class _TasksHomePageState extends State<TasksHomePage>
detailsTapAnimationController.addListener(() {
setSheetState(() {
print("Animation: ${detailsTapAnimationController.value.toDouble()}");
_bottomSheet;
// _bottomSheet;
});
});
_getTables();
@@ -72,12 +70,12 @@ class _TasksHomePageState extends State<TasksHomePage>

@override
Widget build(BuildContext context) {
_builder = new StatefulBuilder(
builder: (BuildContext context, kek) {
print(kek);
return new Text('');
},
);
// _builder = new StatefulBuilder(
// builder: (BuildContext context, kek) {
// print(kek);
// return new Text('');
// },
// );
return new Scaffold(
key: scaffoldKey,
floatingActionButton: new FloatingActionButton.extended(
5 changes: 2 additions & 3 deletions lib/pages/task_details.dart
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ import 'dart:async';
import 'package:flutter/material.dart';

import '../data/database_helper.dart';
import '../model/task.dart';

class TaskDetailsPage extends StatefulWidget {
final int taskId;
@@ -16,7 +15,7 @@ class TaskDetailsPage extends StatefulWidget {
}

class TaskDetailsPageState extends State<TaskDetailsPage> {
Task _task;
// Task _task;
String _taskName;
TextDecoration _textFieldDecoration;
Color _textFieldColor;
@@ -33,7 +32,7 @@ class TaskDetailsPageState extends State<TaskDetailsPage> {
.then((task) {
if (task == null) return;
setState(() {
_task = task;
// _task = task;
_taskName = task.task;
_details = task.details;