Skip to content

Instantly share code, notes, and snippets.

@antklim
Created November 10, 2020 03:29
Show Gist options
  • Save antklim/ecb7a64eb556916e5afe8afe9080771c to your computer and use it in GitHub Desktop.
Save antklim/ecb7a64eb556916e5afe8afe9080771c to your computer and use it in GitHub Desktop.
class CalculusScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider<CalculatorState>(
create: (_) => CalculatorState(),
builder: (context, _) => CalculusScreenContainer());
}
}
class CalculusScreenContainer extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: SafeArea(
child: ListView(
padding: const EdgeInsets.symmetric(horizontal: 24.0),
children: <Widget>[
Header(),
Divider(indent: 10.0, endIndent: 10.0, height: 8.0),
MemoryInfo(),
CalculatorInput(),
MemoryManagement(),
],
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment