- https://drexel-ue.github.io/
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
OlderNewer