flutter-in-action icon indicating copy to clipboard operation
flutter-in-action copied to clipboard

《Flutter实战》书稿。第二版书稿已上传,请移步新Repo。

Results 108 flutter-in-action issues
Sort by recently updated
recently updated
newest added

如题,电子书写的非常棒,已经打赏。实体书啥时能上市?有的知识点值得反复阅读推敲,纸质的书读起来有感觉

看了下,好像没有这方面的介绍,感觉本地存储也是很常用,很重要的模块

**DESCRIPTION** ancestorStateOfType已经在v1.12.1之后被废弃,换成findAncestorStateOfType方法;

“透明组件” 只是表述的不可见组件,容易引起误解!适当的表述可以是:命中测试失败(hitTest)的组件,如果透明组件hitTest成功,translucent 与 opaque 的特性将无效!比如使用#DecoratedBox# 来包装子组件,设置透明度为0,也是不可见,反例如下,修改此节translucent 测试代码为: Stack( children: [ Listener( child: ConstrainedBox( constraints: BoxConstraints.tight(Size(300.0, 200.0)), child: DecoratedBox( decoration: BoxDecoration( color: Color.fromARGB(255, 255, 1, 1))), ), onPointerDown: (event) => print("down0"),...

最后一章按照步骤敲完,并且安装的都是最新版的插件,在android上启动一直停在首屏(黑屏)的位置,无反应,也不报错。 后来查看日志发现以下提示: E/flutter ( 8093): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized. E/flutter ( 8093): If you're running an application and need to access the binary...

import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo',...

文件地址: flutter-in-action/docs/chapter11/file_operation.md 错误代码: `File('$dir/counter.txt')` 错误原因: (new) File File(List fileBits, String fileName, [Map options]) 当前版本: [✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-CN) [✓] Android toolchain...