Skip to content

Instantly share code, notes, and snippets.

View drexel-ue's full-sized avatar

IKesh Pack drexel-ue

  • Ohio
View GitHub Profile
include: package:lint/analysis_options.yaml
analyzer:
strong-mode:
implicit-casts: true
implicit-dynamic: true
linter:
rules:
- always_declare_return_types
# - always_put_control_body_on_new_line
# A valid snippet should starts with:
#
# snippet trigger_word [ "description" [ options ] ]
#
# and end with:
#
# endsnippet
#
# Snippet options:
#
Scrollable(
axisDirection: AxisDirection.right,
controller: _pageController,
physics: const PageScrollPhysics(parent: ClampingScrollPhysics()),
viewportBuilder: (BuildContext context, ViewportOffset offset) {
return LayoutBuilder(
builder: (context, constraints) {
offset.applyViewportDimension(constraints.maxWidth);
offset.applyContentDimensions(0.0, constraints.maxWidth);
return AnimatedBuilder(
@drexel-ue
drexel-ue / responsive_demo.dart
Last active July 16, 2020 01:21
Running this gist in pub.dev (https://dartpad.dev/7eb75e7bf34873f4e414420cf2374b79) will show a brief display of a scalable responsive design pattern
// Responsive design demo.
import 'package:flutter/material.dart';
void main() => runApp(ResponsiveDemo());
/// enum to denote the type of device we're dealing with based on the screen.
enum DeviceScreenType {
mobileSmall,
mobileMedium,
Controller
import 'package:trivia_black/model/point.dart';
import 'package:trivia_black/trivia_black.dart';
class PointController extends ResourceController {
PointController(this.context);
ManagedContext context;
@Operation.post('identifier')
const state = {
entities: {
routes: {
1: {
id: 1,
map: 'Uptown',
activity: 'Walk',
description: 'left foot right foot...',
directions: [
'hop',
import 'package:flutter/cupertino.dart';
import 'package:meta/meta.dart';
import 'package:trivia_black/models/point.dart';
import 'package:trivia_black/models/user.dart';
class Game {
Game({
@required User turnPlayer,
@required User waitPlayer,
@required String challengerIdentifier,
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:rxdart/rxdart.dart';
import 'package:trivia_black/events/game_event.dart';
import 'package:trivia_black/models/answer.dart';
import 'package:trivia_black/models/game.dart';
import 'package:trivia_black/models/point.dart';
import 'package:trivia_black/models/question.dart';
import 'package:trivia_black/models/user.dart';
error:
2019-07-19 10:13:28.664850
[WARNING] aqueduct: PostgreSQLSeverity.error 42703: column t1.video_identifier does not exist PostgreSQLSeverity.error 42703: column t1.video_identifier does not exist
query:
..route('/authVids').linkFunction((Request request) async {
final query = Query<Video>(context)
..join(set: (Video vid) => vid.hashtaggings)
.join(object: (HashTagging tagging) => tagging.hashTag)
.returningProperties((HashTag tag) => [tag.tag])
error:
*** There was an issue. Reason: there is no unique constraint matching given keys for referenced table "_video". Table: null Column: null
_hashtag:
import 'package:vw_serv/model/hashtagging.dart';
import 'package:vw_serv/vw_serv.dart';
class HashTag extends ManagedObject<_HashTag> implements _HashTag {}