рабочая 5 лаба.3
This commit is contained in:
parent
a97454f8bb
commit
af324833e6
@ -29,12 +29,11 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Padding(
|
return Scaffold(
|
||||||
padding: EdgeInsets.only(top: MediaQuery
|
body: Padding(
|
||||||
.of(context)
|
padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top),
|
||||||
.padding
|
child: Column(
|
||||||
.top),
|
children: [
|
||||||
child: Column(children: [
|
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(12),
|
padding: const EdgeInsets.all(12),
|
||||||
child: CupertinoSearchTextField(
|
child: CupertinoSearchTextField(
|
||||||
@ -51,8 +50,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: FutureBuilder<List<MarketData>?>(
|
child: FutureBuilder<List<MarketData>?>(
|
||||||
future: data,
|
future: data,
|
||||||
builder: (context, snapshot) =>
|
builder: (context, snapshot) => SingleChildScrollView(
|
||||||
SingleChildScrollView(
|
|
||||||
child: snapshot.hasData
|
child: snapshot.hasData
|
||||||
? Column(
|
? Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@ -71,10 +69,14 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]));
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void _showSnackBar(BuildContext context, String title, bool isLiked) {
|
void _showSnackBar(BuildContext context, String title, bool isLiked) {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||||
|
Loading…
Reference in New Issue
Block a user