mirror of
https://github.com/flutter/samples.git
synced 2026-07-23 01:13:15 +00:00
Upgrade deps, format, fix web/filipino_cuisine (#898)
fixes: https://github.com/flutter/samples/issues/897
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'flutter_page_indicator.dart';
|
||||
import 'transformer_page_view.dart';
|
||||
|
||||
@@ -8,13 +8,19 @@ import 'flutter_swiper.dart';
|
||||
void main() => runApp(MyApp());
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
final _themeData = ThemeData(
|
||||
brightness: Brightness.light,
|
||||
iconTheme: const IconThemeData(color: Colors.red),
|
||||
);
|
||||
|
||||
@override
|
||||
Widget build(context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(
|
||||
brightness: Brightness.light,
|
||||
accentColor: Colors.red,
|
||||
iconTheme: const IconThemeData(color: Colors.red)),
|
||||
theme: _themeData.copyWith(
|
||||
colorScheme: _themeData.colorScheme.copyWith(
|
||||
secondary: Colors.red,
|
||||
),
|
||||
),
|
||||
title: "Filipino Cuisine",
|
||||
home: Home());
|
||||
}
|
||||
@@ -123,7 +129,7 @@ class HState extends State<Home> {
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (cx) => Cook(
|
||||
fi['in'] as List<String>,
|
||||
(fi['in'] as List).cast(),
|
||||
fi['pf'] as String,
|
||||
fi['fn'] as String,
|
||||
))),
|
||||
|
||||
Reference in New Issue
Block a user