Download flutter/dev/tools/gen_defaults/lib/divider_template.dart from luom2645/agent-workspace: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/tools/gen_defaults/lib/divider_template.dart
- Command line
-
hf download hf://luom2645/agent-workspace/flutter/dev/tools/gen_defaults/lib/divider_template.dart
-
curl -L -o divider_template.dart https://huggingface.co/luom2645/agent-workspace/resolve/main/flutter/dev/tools/gen_defaults/lib/divider_template.dart
681 Bytes
| // Copyright 2014 The Flutter Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import 'template.dart'; | |
| class DividerTemplate extends TokenTemplate { | |
| const DividerTemplate(super.blockName, super.fileName, super.tokens); | |
| String generate() => ''' | |
| class _${blockName}DefaultsM3 extends DividerThemeData { | |
| const _${blockName}DefaultsM3(this.context) : super( | |
| space: 16, | |
| thickness: ${getToken("md.comp.divider.thickness")}, | |
| indent: 0, | |
| endIndent: 0, | |
| ); | |
| final BuildContext context; | |
| @override Color? get color => ${componentColor("md.comp.divider")}; | |
| } | |
| '''; | |
| } | |