Skip to content

Instantly share code, notes, and snippets.

View bekharsky's full-sized avatar

Sergey Bekharsky bekharsky

View GitHub Profile
@bekharsky
bekharsky / custom.css
Last active February 3, 2024 21:58
custom CSS
*,
*::after,
*::before {
box-sizing: border-box;
}
pre {
appearance: none;
white-space: normal !important;
}
@bekharsky
bekharsky / modal_stack.dart
Created November 17, 2024 14:47
Flutter Cupertino aka iOS Modal Stack
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';
void main() => runApp(MyApp());
/// Inspiration taken from [modal_bottom_sheet](https://github.com/jamesblasco/modal_bottom_sheet)
class _CupertinoBottomSheetContainer extends StatelessWidget {
/// Widget to render
final Widget child;
/**
* @type {import('@rspack/cli').Configuration}
*/
const ReactRefreshPlugin = require('@rspack/plugin-react-refresh');
const pkg = require('./package.json');
const rspack = require('@rspack/core');
const path = require('path');
const isDev = process.env.NODE_ENV === 'development';
const isDevBuild = process.env.NODE_ENV === 'none'
const VERSION = pkg.version;