This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| // import 'package:google_fonts/google_fonts.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | |
| @override | |
| Widget build(BuildContext context) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)recursiveCategoryEqualTo:(MNRCategory *)modelObject assignTo:(MNRCategory*)pointerToReturn testedOn:(MNRCategory*)category; | |
| { | |
| if ([category.objectID isEqualToString:((MNRCategory *)modelObject).objectID]) | |
| { | |
| pointerToReturn = category; | |
| } | |
| if (category.children.count) | |
| { | |
| for (MNRCategory *childCat in category.children) { | |
| [self recursiveCategoryEqualTo:modelObject assignTo:pointerToReturn testedOn:childCat]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [minorShadowPath moveToPoint:CGPointMake(0, self.bounds.size.height - offset)]; | |
| [minorShadowPath addLineToPoint:CGPointMake(self.bounds.size.width - offset, self.bounds.size.height - offset)]; | |
| [minorShadowPath addLineToPoint:CGPointMake(self.bounds.size.width - offset, self.bounds.size.height - offset - 1)]; | |
| [minorShadowPath addLineToPoint:CGPointMake(0, self.bounds.size.height - offset - 1)]; | |
| [minorShadowPath closePath]; | |
| [self.layerThatNeedsShadow setShadowPath:minorShadowPath.cgPath]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [minorShadowPath moveToPoint:CGPointMake(0, self.bounds.size.height - offset)]; | |
| [minorShadowPath addLineToPoint:CGPointMake(self.bounds.size.width - offset, self.bounds.size.height - offset)]; | |
| [self.layerThatNeedsShadow setShadowPath:minorShadowPath.cgPath]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [CATransaction begin]; | |
| [CATransaction setAnimationDuration:0]; | |
| [self.dateLayer setFontSize:13.0]; | |
| [CATransaction commit]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CABasicAnimation *dateLayerFontSize = [CABasicAnimation animationWithKeyPath:@"fontSize"]; | |
| [dateLayerFontSize setDuration:duration]; | |
| [dateLayerFontSize setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; | |
| [dateLayerFontSize setFromValue:[NSNumber numberWithFloat:11.0]]; | |
| [dateLayerFontSize setToValue:[NSNumber numberWithFloat:23.0]]; | |
| [self.dateLayer addAnimation:dateLayerFontSize forKey:@"animateFontSize"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| switch (something) | |
| { | |
| case 1: | |
| { | |
| NSObject *testing=[[NSObject alloc] init]; | |
| break; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| switch (something) | |
| { | |
| case 1: | |
| NSObject *testing=[[NSObject alloc] init]; | |
| break; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSObject *testing; | |
| switch (something) | |
| { | |
| case 1: | |
| testing=[[NSObject alloc] init]; | |
| break; | |
| } |