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:meta/meta.dart'; | |
import 'unit.dart'; | |
const _padding = EdgeInsets.all(16.0); | |
class ConverterRoute extends StatefulWidget { | |
final String name; | |
final Color color; |
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
class $1 extends StatefulWidget { | |
const $1(); | |
@override | |
_$2 createState() => _$2(); | |
} | |
class $2 extends State<$1> { | |
const $2(); |
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
//Declaring & Assigning variables | |
a = 1 | |
b = 2 | |
c = 3 | |
//Clearing Variables | |
clear a b | |
clear | |
//Row vector |
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 dagger.Module | |
// required imports | |
@Module | |
class ActivityBuilderModule{ | |
@ActivityScope | |
@ContributeAndoridInjector(modules = [ActivityModule::class]) | |
fun bindFeatureActivity(): FeatureActivity | |
} |
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
//Uniform Scaling | |
... | |
TextViewCompat.setAutoSizeTextTypeWithDefaults(this, | |
TextViewCompat.AUTO_SIZE_TEXT_TYPE_UNIFORM) | |
... | |
//Granualarity | |
TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(this, | |
12, 28, 4, | |
TypedValue.COMPLEX_UNIT_SP) | |
... |
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
override fun onCreate(savedInstanceState: Bundle?) { | |
// … | |
addCoffee.setOnClickListener { | |
coffeeRepo.increment() | |
showCount() | |
amountConsumed.announceForAccessibility(getString(R.string.count_updated, consumedString())) | |
} | |
} |
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
class AuthCheckAuthenticatedAction{ | |
@override | |
String toString() { | |
return 'AuthCheckAuthenticatedAction{name: AuthCheckAuthenticatedAction}'; | |
} | |
} |
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
dependencies: | |
flutter: | |
sdk: flutter | |
redux: ^3.0.0 | |
flutter_redux: ^0.5.2 | |
flutter_redux_navigation: ^0.4.1 | |
rxdart: ^0.20.0 |
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_redux/flutter_redux.dart'; | |
import 'package:flutter_redux_navigation/flutter_redux_navigation.dart'; | |
import 'package:redux/redux.dart'; | |
import 'package:timesheet_client/redux/qr_actions.dart'; | |
import 'package:timesheet_client/redux/timesheet_app_state.dart'; | |
class LoginScreen extends StatefulWidget { | |
@override | |
_LoginScreenState createState() => new _LoginScreenState(); |
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
@override | |
Widget build(BuildContext context) { | |
Map args = ModalRoute.of(context).settings.arguments; | |
var _email; | |
if (args != null) { | |
_email = args["email"]; | |
} | |
} |