Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
import 'dart:convert';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
import 'package:flutter/material.dart';
import 'dart:convert';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
import 'package:flutter/material.dart';
import 'todo_class.dart';
class TodoScreen extends StatefulWidget {
@override
_TodoScreenState createState() => _TodoScreenState();
}
class _TodoScreenState extends State<TodoScreen> {
@Bruising6802
Bruising6802 / database.dart
Last active May 23, 2020 05:09
A database of sqflite in flutter for todos
import 'dart:async';
import 'dart:io';
import 'package:path/path.dart';
import 'package:path_provider/path_provider.dart';
import 'package:sqflite/sqflite.dart';
import 'package:meta/meta.dart';
class ToDo {
export default {
// ... Dont change the code above
modules: [
'@nuxtjs/apollo',
],
apollo: {
clientConfigs: {
// ...
<script>
import gql from "graphql-tag";
export default {
apollo: {
},
};