import 'package:flutter/material.dart'; class AppContext { static BuildContext? _context; static void set(BuildContext context) { _context = context; } static BuildContext get() { return _context!; } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter