Skip to content

Instantly share code, notes, and snippets.

Avatar

Luc Wollants LucWollants

View GitHub Profile
@LucWollants
LucWollants / horizontal_sliding_page_route.dart
Created Apr 17, 2017
Class to slide a route horizontal from right to left.
View horizontal_sliding_page_route.dart
class HorizontalSlidingPageRoute<T> extends MaterialPageRoute<T> {
HorizontalSlidingPageRoute({
WidgetBuilder builder,
RouteSettings settings: const RouteSettings(),
maintainState: true,
})
: super(builder: builder, settings: settings, maintainState: maintainState);
@override
Widget buildTransitions(BuildContext context, Animation<double> animation,
@LucWollants
LucWollants / divider.dart
Created Apr 17, 2017
Simple example to show the invisible divider.
View divider.dart
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(
title: 'divider',
home: new ExpandedWidget(),
));
}
class ExpandedWidget extends StatelessWidget {
View Nested OR
->select('*')
->from('users u')
->where(
[
'is_admin'=>true
]
)
->andWhere(
[
'OR',
You can’t perform that action at this time.