Created
November 10, 2020 03:29
-
-
Save antklim/ecb7a64eb556916e5afe8afe9080771c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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