Skip to content

Instantly share code, notes, and snippets.

@diefferson
Created June 8, 2021 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diefferson/94e29a682bf1a460ab98e9f859cce466 to your computer and use it in GitHub Desktop.
Save diefferson/94e29a682bf1a460ab98e9f859cce466 to your computer and use it in GitHub Desktop.
Stark component
import 'package:flutter/material.dart';
import 'package:stark/stark.dart';
class _MyHomePageState extends State<MyHomePage> with StarkComponent {
late ViewModel _viewModel;
@override
void initState() {
super.initState();
_viewModel = get<ViewModel>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment