Skip to content

Instantly share code, notes, and snippets.

View SharbelOkzan's full-sized avatar

SharbelOkzan

  • Warsaw, Poland
View GitHub Profile
@SharbelOkzan
SharbelOkzan / main.dart
Created December 14, 2023 14:14
[Dart issue] Assign value to a first-class member function in the constructor
class Bar {
final int Function() foo;
Bar() : foo = () => 1;
}
class Bar2 {
final int Function() foo = () => 1;
Bar2();
@SharbelOkzan
SharbelOkzan / main.dart
Created July 22, 2022 19:09
Right to Left Horizontal ListView
import 'package:flutter/material.dart';
import 'package:flutter/gestures.dart';
main() {
runApp(
MaterialApp(
// ignore this line if running on mobile
scrollBehavior: MyCustomScrollBehavior(),
debugShowCheckedModeBanner: false,