What do you want to save?
Add Code snippet
New code examples
-
Dart 2021-11-22 02:46:12
add fullscreen modal on a page in flutter app
import 'package:flutter/material.dart'; class TutorialOverlay extends ModalRoute<void> { @override Duration get transitionDuration => Duration(milliseconds: 500); @override bool get opaque => false; @override bool get barrierDis... Add solution -
C# 2021-11-17 09:10:14
c# Console Font
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Drawing; namespace ConsoleExtender { [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct ConsoleFon... Add solution -
Other 2021-11-17 01:20:08
automatic keepalive flutter tabs
class _DealListState extends State<DealList> with AutomaticKeepAliveClientMixin<DealList> { @override bool get wantKeepAlive => true; @override Widget build(BuildContext context) { super.build(context); // need to call super me... Add solution -
C# 2021-11-07 17:01:14
Disable key Unity
// At the top of your script using System.Collections.Generic; // In your class private Dictionary<KeyCode, bool> keys = new Dictionary<KeyCode, bool>(); private bool GetKeyDown( Keycode keyCode ) { if( !keys.ContainsKey( keyCode ) ... Add solution -
Other 2021-09-25 23:18:05
webview flutter avoid reloading
class ListWidget extends StatefulWidget { @override _ListWidgetState createState() => _ListWidgetState(); } class _ListWidgetState extends State<ListWidget> with AutomaticKeepAliveClientMixin<ListWidget>{ // ** her... Add solution -
C++ 2021-09-04 00:52:02
c# p/involke c++ dll get struct
// At the dll wrapper class [DllImport(path, EntryPoint = "?GetParameters@@YGHKPAU_DevParam@@@Z")] public static extern bool GetParameters(int ID, IntPtr dParam); // At main int size = Marshal.SizeOf(typeof(DevParam)); IntPtr Ptr = Marshal.Allo... Add solution