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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const ContainerTestHomework()); | |
} | |
class ContainerTestHomework extends StatelessWidget { | |
const ContainerTestHomework({super.key}); | |
@override |
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
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const BorisFirstAppClass()); | |
} | |
class BorisFirstAppClass extends StatelessWidget { | |
const BorisFirstAppClass({super.key}); | |
// This widget is the root of your application. |
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
Widget build(BuildContext context) { | |
final ButtonStyle style = TextButton.styleFrom( | |
foregroundColor: Theme.of(context).colorScheme.onPrimary, | |
); | |
return Scaffold ( | |
appBar: AppBar( | |
leading: Icon(Icons.favorite), | |
title: const Text('The Title'), | |
actions: <Widget>[ | |
TextButton( |