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
package echomw | |
import ( | |
"encoding/json" | |
"io/ioutil" | |
"net/http" | |
"github.com/labstack/echo/v4" | |
"github.com/labstack/echo/v4/middleware" | |
"github.com/reedom/…/pkg/log" |
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:flutter_hooks/flutter_hooks.dart'; | |
import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(ProviderScope(child: _MyApp())); | |
} |
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:flutter_hooks/flutter_hooks.dart'; | |
class OptimizedIndexedStack extends HookWidget { | |
const OptimizedIndexedStack({ | |
Key key, | |
@required this.pages, | |
this.index = 0, | |
}) : super(key: key); |
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
# In convention, our project names `xxx_state.dart` for StateNotifier's state files | |
# and we only use Freezed in them. So, we can: | |
gen: | |
flutter pub run build_runner build --delete-conflicting-outputs \ | |
--build-filter="lib/**/*_state.freezed.dart" |
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 'dart:async'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. |
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
open class CircleShapeView: UIView { | |
override open var backgroundColor: UIColor? { | |
get { | |
guard | |
let layer = layer as? CAShapeLayer, | |
let cgColor = layer.fillColor | |
else { return super.backgroundColor } | |
return UIColor(cgColor: cgColor) | |
} | |
set { |
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 "TSTextRectangleDetector.h" | |
#import <CoreML/CoreML.h> | |
#import <Vision/Vision.h> | |
@implementation TSTextRectangleDetector { | |
FlutterEventSink _eventSink; | |
BOOL _running; | |
BOOL _wasEmpty; | |
} |