GithubHelp home page GithubHelp logo

Comments (4)

huangrui1226 avatar huangrui1226 commented on July 19, 2024

图片好像很难显示
在Pods/FlipperKit/FlipperKitLayoutComponentKitSupport/CKFlexboxComponent+Sonar.mm文件中

- (NSArray<SKNamed<NSDictionary<NSString *, NSObject *> *> *> *)sonar_additionalDataOverride
{
  CKFlexboxComponentStyle style;
  [[self valueForKey: @"_style"] getValue: &style];

  return @[[SKNamed
            newWithName:@"CKFlexboxComponent"
            withValue:@{
              @"spacing": SKMutableObject(@(style.spacing)),
              @"direction": SKMutableObject(CKFlexboxDirectionEnumMap[@(style.direction)]),
              @"justifyContent": SKMutableObject(CKFlexboxJustifyContentEnumMap[@(style.justifyContent)]),
              @"alignItems": SKMutableObject(CKFlexboxAlignItemsEnumMap[@(style.alignItems)]),
              @"alignContent": SKMutableObject(CKFlexboxAlignContentEnumMap[@(style.alignContent)]),
              @"wrap": SKMutableObject(CKFlexboxWrapEnumMap[@(style.wrap)]),
              @"margin": SKMutableObject(flexboxRect(style.margin)),
              @"padding": SKMutableObject(flexboxRect(style.padding)),
            }]];
}

还有这里

           @"CKFlexboxComponent.margin.bottom": ^(NSString *value) {
             style.margin.bottom = relativeStructDimension(value);
             return [NSValue value:&style withObjCType:@encode(CKFlexboxComponentStyle)];
           },
           @"CKFlexboxComponent.margin.top": ^(NSString *value) {
             style.margin.top = relativeStructDimension(value);
             return [NSValue value:&style withObjCType:@encode(CKFlexboxComponentStyle)];
           },
           @"CKFlexboxComponent.margin.end": ^(NSString *value) {
             style.margin.end = relativeStructDimension(value);
             return [NSValue value:&style withObjCType:@encode(CKFlexboxComponentStyle)];
           },
           @"CKFlexboxComponent.margin.start": ^(NSString *value) {
             style.margin.start = relativeStructDimension(value);
             return [NSValue value:&style withObjCType:@encode(CKFlexboxComponentStyle)];
           },

报错,错误内容是No member named 'margin' in 'CKFlexboxComponentStyle'

from flutter_flipperkit.

yorickreum avatar yorickreum commented on July 19, 2024

Same problem here!

from flutter_flipperkit.

lijy91 avatar lijy91 commented on July 19, 2024

@yorickreum @huangrrui Can you provide a sample code?

from flutter_flipperkit.

lijy91 avatar lijy91 commented on July 19, 2024

@huangrrui @yorickreum Please upgrade to 0.0.22, and check README.md to setup.

dependencies:
  flutter_flipperkit: ^0.0.23

from flutter_flipperkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.