Skip to content

Instantly share code, notes, and snippets.

@vishna
vishna / carousel.dart
Created July 21, 2020 17:41 — forked from slightfoot/carousel.dart
Scrolling Carousel with centered variable width items and snapping - By Simon Lightfoot - 20/07/2020
@vishna
vishna / syntax_highlighter.dart
Last active March 1, 2021 11:47 — forked from X-Wei/syntax_highlighter.dart
syntax-highlighter for flutter_markdown (adopted from flutter_gallery) + nullsafety + range error fix
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart' show SyntaxHighlighter;
import 'package:string_scanner/string_scanner.dart';
class SyntaxHighlighterStyle {
SyntaxHighlighterStyle(