- https://drexel-ue.github.io/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A valid snippet should starts with: | |
# | |
# snippet trigger_word [ "description" [ options ] ] | |
# | |
# and end with: | |
# | |
# endsnippet | |
# | |
# Snippet options: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const state = { | |
entities: { | |
routes: { | |
1: { | |
id: 1, | |
map: 'Uptown', | |
activity: 'Walk', | |
description: 'left foot right foot...', | |
directions: [ | |
'hop', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
NewerOlder